Mercurial > trustbridge
diff common/util.h @ 675:4ad764bfb39c
Add writing of the NSS line into the registry
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Fri, 27 Jun 2014 18:53:52 +0200 |
parents | 175370634226 |
children | 216a65d7fc4b |
line wrap: on
line diff
--- a/common/util.h Fri Jun 27 16:18:10 2014 +0200 +++ b/common/util.h Fri Jun 27 18:53:52 2014 +0200 @@ -51,6 +51,17 @@ * @returns A copy of the process owners sid or NULL on error. */ PSID get_process_owner(HANDLE hProcess); + +/**@brief Get the directory in which the current process resides in + * + * Look up the directory in which the current process is placed. + * If the path is longer then MAX_PATH NULL is returned. + * + * Returns a utf-8 encoded string that has to be freed by the caller + * + * @returns The directory of the current process + */ +char * get_install_dir(); #endif #ifdef __cplusplus