1 /*
2 Copyright (C) 2015-2021, Dirk Krause
3 SPDX-License-Identifier: BSD-3-Clause
4 */
5 
6 /*
7 	WARNING: This file was generated by the dkct program (see
8 	http://dktools.sourceforge.net/ for details).
9 	Changes you make here will be lost if dkct is run again!
10 	You should modify the original source and run dkct on it.
11 	Original source: dk4isadm.ctr
12 */
13 
14 #ifndef DK4ISADM_H_INCLUDED
15 /** Avoid multiple inclusions. */
16 #define DK4ISADM_H_INCLUDED 1
17 
18 
19 /**	@file	dk4isadm.h	Check whether process runs with
20 	admin privileges.
21 */
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 /**	Check whether the current process runs with administrative privileges.
28 	@return	1 if administrative, 0 if user process, -1 if failed to check.
29 */
30 int
31 dk4isadmin(void);
32 
33 #ifdef __cplusplus
34 }
35 #endif
36 
37 
38 #endif
39