diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-07-18 10:25:37 +0000 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-07-18 10:34:38 +0000 |
commit | 58ce3c50002f348401ea2faaf5574915e078ec63 (patch) | |
tree | 8a261a93b9e6af9078a6fdc3fcde58e5847b06b9 /undocumented.h | |
parent | README: clarify ring usage (diff) | |
download | wintun-58ce3c50002f348401ea2faaf5574915e078ec63.tar.xz wintun-58ce3c50002f348401ea2faaf5574915e078ec63.zip |
Piggy-back on top of NDIS' device object instead of adding our own
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'undocumented.h')
-rw-r--r-- | undocumented.h | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/undocumented.h b/undocumented.h deleted file mode 100644 index 13547d7..0000000 --- a/undocumented.h +++ /dev/null @@ -1,44 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 - * - * Copyright (C) 2018-2019 WireGuard LLC. All Rights Reserved. - */ - -#pragma once - -#include <wdm.h> - -typedef enum -{ - SystemExtendedHandleInformation = 0x40 -} SYSTEM_INFORMATION_CLASS; - -typedef struct _SYSTEM_HANDLE_TABLE_ENTRY_INFO_EX -{ - PVOID Object; - HANDLE UniqueProcessId; - HANDLE HandleValue; - ACCESS_MASK GrantedAccess; - USHORT CreatorBackTraceIndex; - USHORT ObjectTypeIndex; - ULONG HandleAttributes; - ULONG Reserved; -} SYSTEM_HANDLE_TABLE_ENTRY_INFO_EX, *PSYSTEM_HANDLE_TABLE_ENTRY_INFO_EX; - -typedef struct _SYSTEM_HANDLE_INFORMATION_EX -{ - ULONG_PTR NumberOfHandles; - ULONG_PTR Reserved; - SYSTEM_HANDLE_TABLE_ENTRY_INFO_EX Handles[ANYSIZE_ARRAY]; -} SYSTEM_HANDLE_INFORMATION_EX, *PSYSTEM_HANDLE_INFORMATION_EX; - -extern NTSTATUS -ZwQuerySystemInformation( - SYSTEM_INFORMATION_CLASS SystemInformationClass, - PVOID SystemInformation, - ULONG SystemInformationLength, - ULONG *ReturnLength); - -extern NDIS_HANDLE -NdisWdfGetAdapterContextFromAdapterHandle(PVOID DeviceExtension); - -extern POBJECT_TYPE *IoDeviceObjectType; |