Mercurial > trustbridge
comparison 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 |
comparison
equal
deleted
inserted
replaced
674:f1795a232418 | 675:4ad764bfb39c |
---|---|
49 * The process must have the PROCESS_QUERY_INFORMATION access permission. | 49 * The process must have the PROCESS_QUERY_INFORMATION access permission. |
50 * | 50 * |
51 * @returns A copy of the process owners sid or NULL on error. | 51 * @returns A copy of the process owners sid or NULL on error. |
52 */ | 52 */ |
53 PSID get_process_owner(HANDLE hProcess); | 53 PSID get_process_owner(HANDLE hProcess); |
54 | |
55 /**@brief Get the directory in which the current process resides in | |
56 * | |
57 * Look up the directory in which the current process is placed. | |
58 * If the path is longer then MAX_PATH NULL is returned. | |
59 * | |
60 * Returns a utf-8 encoded string that has to be freed by the caller | |
61 * | |
62 * @returns The directory of the current process | |
63 */ | |
64 char * get_install_dir(); | |
54 #endif | 65 #endif |
55 | 66 |
56 #ifdef __cplusplus | 67 #ifdef __cplusplus |
57 } | 68 } |
58 #endif | 69 #endif |