aboutsummaryrefslogtreecommitdiffstats
path: root/undocumented.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-07-18 10:25:37 +0000
committerJason A. Donenfeld <Jason@zx2c4.com>2019-07-18 10:34:38 +0000
commit58ce3c50002f348401ea2faaf5574915e078ec63 (patch)
tree8a261a93b9e6af9078a6fdc3fcde58e5847b06b9 /undocumented.h
parentREADME: clarify ring usage (diff)
downloadwintun-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.h44
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;