Mercurial > trustbridge
comparison common/util.h @ 1010:1c1964c27b39 runafterinstall
(issue54) commit work in progress on start after installation
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Tue, 02 Sep 2014 14:25:40 +0200 |
parents | 427e2e18b8c8 |
children | fd85a02d771d |
comparison
equal
deleted
inserted
replaced
1004:7dff5c0c569c | 1010:1c1964c27b39 |
---|---|
134 * | 134 * |
135 * @returns true on success of if the directory exists, false on error | 135 * @returns true on success of if the directory exists, false on error |
136 */ | 136 */ |
137 bool create_restricted_directory (LPWSTR path); | 137 bool create_restricted_directory (LPWSTR path); |
138 | 138 |
139 /** @brief get a restricted access token to execute nss process | |
140 * | |
141 * This function uses the Software Restriction API to obtain the | |
142 * access token for a process run als normal user. | |
143 * | |
144 * @returns A restricted handle or NULL on error. | |
145 */ | |
146 HANDLE get_restricted_token(); | |
147 | |
148 /** @brief get a normal user access token | |
149 * | |
150 * The trusted acces token is not elevated but has the normal user rights. | |
151 * | |
152 * @returns A normal user handle or NULL on error. | |
153 */ | |
154 HANDLE get_normal_token(); | |
155 | |
139 #endif | 156 #endif |
140 | 157 |
141 #ifdef __cplusplus | 158 #ifdef __cplusplus |
142 } | 159 } |
143 #endif | 160 #endif |