diff 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
line wrap: on
line diff
--- a/common/util.h	Tue Sep 02 10:54:51 2014 +0200
+++ b/common/util.h	Tue Sep 02 14:25:40 2014 +0200
@@ -136,6 +136,23 @@
   */
 bool create_restricted_directory (LPWSTR path);
 
+/** @brief get a restricted access token to execute nss process
+  *
+  * This function uses the Software Restriction API to obtain the
+  * access token for a process run als normal user.
+  *
+  * @returns A restricted handle or NULL on error.
+  */
+HANDLE get_restricted_token();
+
+/** @brief get a normal user access token
+  *
+  * The trusted acces token is not elevated but has the normal user rights.
+  *
+  * @returns A normal user handle or NULL on error.
+  */
+HANDLE get_normal_token();
+
 #endif
 
 #ifdef __cplusplus

http://wald.intevation.org/projects/trustbridge/