diff options
author | Rob Mensching <rob@firegiant.com> | 2021-05-11 07:38:07 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2021-05-11 07:38:07 -0700 |
commit | 0c6aea2de8db1258949a741b1c504307a81bf579 (patch) | |
tree | df45a1c3acf2a2af4c8c62d9461f4483bcd0c28c /src/libs/dutil/WixToolset.DUtil/inc/osutil.h | |
parent | 985b2683b2717c83a27295b36e09b126083238f9 (diff) | |
parent | 7f642e51670bc38a4ef782a363936850bc2b0ba9 (diff) | |
download | wix-0c6aea2de8db1258949a741b1c504307a81bf579.tar.gz wix-0c6aea2de8db1258949a741b1c504307a81bf579.tar.bz2 wix-0c6aea2de8db1258949a741b1c504307a81bf579.zip |
Merge dutil
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 | ||