comparison common/util.h @ 321:824ef90a6721

Move is_elevated into common/util.c file for better reuse
author Andre Heinecke <aheinecke@intevation.de>
date Mon, 07 Apr 2014 10:58:47 +0000
parents
children 31ba7ed4d50f
comparison
equal deleted inserted replaced
320:1628615d904e 321:824ef90a6721
1 #ifndef COMMON_UTIL_H
2 #define COMMON_UTIL_H
3 /* @file util.h
4 * @brief The usual useful stuff that fit nowhere else
5 */
6 #include <stdbool.h>
7
8 #ifdef WIN32
9 /**@brief Check if the current process is running with elevated privileges.
10 *
11 * Elevates the current process token to check if it is marked as elevated.
12 * Uses TokenElevation.
13 *
14 * @returns true if the current process is elevated.*/
15 bool is_elevated();
16 #endif
17 #endif // COMMON_UTIL_H

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