diff options
Diffstat (limited to 'src/libs/dutil/WixToolset.DUtil/inc/osutil.h')
-rw-r--r-- | src/libs/dutil/WixToolset.DUtil/inc/osutil.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/libs/dutil/WixToolset.DUtil/inc/osutil.h b/src/libs/dutil/WixToolset.DUtil/inc/osutil.h new file mode 100644 index 00000000..2cce6f63 --- /dev/null +++ b/src/libs/dutil/WixToolset.DUtil/inc/osutil.h | |||
@@ -0,0 +1,42 @@ | |||
1 | #pragma once | ||
2 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
3 | |||
4 | |||
5 | #ifdef __cplusplus | ||
6 | extern "C" { | ||
7 | #endif | ||
8 | |||
9 | typedef enum OS_VERSION | ||
10 | { | ||
11 | OS_VERSION_UNKNOWN, | ||
12 | OS_VERSION_WINNT, | ||
13 | OS_VERSION_WIN2000, | ||
14 | OS_VERSION_WINXP, | ||
15 | OS_VERSION_WIN2003, | ||
16 | OS_VERSION_VISTA, | ||
17 | OS_VERSION_WIN2008, | ||
18 | OS_VERSION_WIN7, | ||
19 | OS_VERSION_WIN2008_R2, | ||
20 | OS_VERSION_FUTURE | ||
21 | } OS_VERSION; | ||
22 | |||
23 | void DAPI OsGetVersion( | ||
24 | __out OS_VERSION* pVersion, | ||
25 | __out DWORD* pdwServicePack | ||
26 | ); | ||
27 | HRESULT DAPI OsCouldRunPrivileged( | ||
28 | __out BOOL* pfPrivileged | ||
29 | ); | ||
30 | HRESULT DAPI OsIsRunningPrivileged( | ||
31 | __out BOOL* pfPrivileged | ||
32 | ); | ||
33 | HRESULT DAPI OsIsUacEnabled( | ||
34 | __out BOOL* pfUacEnabled | ||
35 | ); | ||
36 | HRESULT DAPI OsRtlGetVersion( | ||
37 | __inout RTL_OSVERSIONINFOEXW* pOvix | ||
38 | ); | ||
39 | |||
40 | #ifdef __cplusplus | ||
41 | } | ||
42 | #endif | ||