diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-10-11 23:21:31 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-10-12 18:54:20 +0000 |
commit | 544fdaaf8fb970d9657a59c1fc4c4569de4f2d3e (patch) | |
tree | 715e49e1f325bf7795face50ff84936b05ab86e2 /api/main.h | |
parent | proj: remove SDV and DVL support (diff) | |
download | wintun-544fdaaf8fb970d9657a59c1fc4c4569de4f2d3e.tar.xz wintun-544fdaaf8fb970d9657a59c1fc4c4569de4f2d3e.zip |
api: rewrite based on SwDevice
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'api/main.h')
-rw-r--r-- | api/main.h | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -24,4 +24,15 @@ extern HANDLE ModuleHeap; extern SECURITY_ATTRIBUTES SecurityAttributes; extern BOOL IsLocalSystem; extern USHORT NativeMachine; -extern BOOL IsWindows10;
\ No newline at end of file + +#if NTDDI_VERSION > NTDDI_WIN7 +# define IsWindows7 FALSE +#else +extern BOOL IsWindows7; +#endif + +#if NTDDI_VERSION >= NTDDI_WIN10 +# define IsWindows10 TRUE +#else +extern BOOL IsWindows10; +#endif
\ No newline at end of file |