Mercurial > trustbridge
comparison common/util.h @ 1029:6684e5012b7a
(issue98) Set integrity level to medium on restricted token and
evaluate it to determine if the process is elevated.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Thu, 04 Sep 2014 11:00:55 +0200 |
parents | 427e2e18b8c8 |
children | 76cae27b5d83 |
comparison
equal
deleted
inserted
replaced
1028:461db8f903f5 | 1029:6684e5012b7a |
---|---|
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 /**@briefu Check the integrity level of the token | |
140 * | |
141 * Returns true if the token has SECURITY_MANADTORY_HIGH_RID or | |
142 * SECURITY_MANDATORY_SYSTEM_RID and false otherwise. | |
143 * | |
144 * @param[in] hToken the Token to check | |
145 * | |
146 * @returns true if the token has at least high integrity. | |
147 */ | |
148 bool has_high_integrity(HANDLE hToken); | |
149 | |
139 #endif | 150 #endif |
140 | 151 |
141 #ifdef __cplusplus | 152 #ifdef __cplusplus |
142 } | 153 } |
143 #endif | 154 #endif |