...
From 913cd011290d5f336dd02e11222acb6102c9b6e8 Mon Sep 17 00:00:00 2001
From: Biswapriyo Nath <nathbap...@gmail.com>
Date: Tue, 5 May 2020 00:55:46 +0530
Subject: [PATCH] headers/ddk: add wdmsec.h file

Signed-off-by: Biswapriyo Nath <nathbap...@gmail.com>
---
 mingw-w64-headers/ddk/include/ddk/wdmsec.h | 63 ++++++++++++++++++++++
 1 file changed, 63 insertions(+)
 create mode 100644 mingw-w64-headers/ddk/include/ddk/wdmsec.h

diff --git a/mingw-w64-headers/ddk/include/ddk/wdmsec.h 
b/mingw-w64-headers/ddk/include/ddk/wdmsec.h
new file mode 100644
index 0000000..3e5d011
--- /dev/null
+++ b/mingw-w64-headers/ddk/include/ddk/wdmsec.h
@@ -0,0 +1,63 @@
+/**
+ * This file has no copyright assigned and is placed in the Public Domain.
+ * This file is part of the mingw-w64 runtime package.
+ * No warranty is given; refer to the file DISCLAIMER.PD within this package.
+ */
+
+#ifndef _WDMSEC_H_
+#define _WDMSEC_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+extern const UNICODE_STRING SDDL_DEVOBJ_KERNEL_ONLY;
+#define SDDL_DEVOBJ_INF_SUPPLIED SDDL_DEVOBJ_KERNEL_ONLY
+
+extern const UNICODE_STRING SDDL_DEVOBJ_SYS_ALL;
+extern const UNICODE_STRING SDDL_DEVOBJ_SYS_ALL_ADM_ALL;
+extern const UNICODE_STRING SDDL_DEVOBJ_SYS_ALL_ADM_RX;
+extern const UNICODE_STRING SDDL_DEVOBJ_SYS_ALL_ADM_RWX_WORLD_R;
+extern const UNICODE_STRING SDDL_DEVOBJ_SYS_ALL_ADM_RWX_WORLD_R_RES_R;
+extern const UNICODE_STRING SDDL_DEVOBJ_SYS_ALL_ADM_RWX_WORLD_RW_RES_R;
+extern const UNICODE_STRING SDDL_DEVOBJ_SYS_ALL_ADM_RWX_WORLD_RWX_RES_RWX;
+
+#undef IoCreateDeviceSecure
+#define IoCreateDeviceSecure WdmlibIoCreateDeviceSecure
+
+NTSTATUS
+WdmlibIoCreateDeviceSecure(
+  PDRIVER_OBJECT DriverObject,
+  ULONG DeviceExtensionSize,
+  PUNICODE_STRING DeviceName,
+  DEVICE_TYPE DeviceType,
+  ULONG DeviceCharacteristics,
+  BOOLEAN Exclusive,
+  PCUNICODE_STRING DefaultSDDLString,
+  LPCGUID DeviceClassGuid,
+  PDEVICE_OBJECT *DeviceObject
+);
+
+#undef RtlInitUnicodeStringEx
+#define RtlInitUnicodeStringEx WdmlibRtlInitUnicodeStringEx
+
+NTSTATUS
+WdmlibRtlInitUnicodeStringEx(
+  PUNICODE_STRING DestinationString,
+  PCWSTR SourceString
+);
+
+#undef IoValidateDeviceIoControlAccess
+#define IoValidateDeviceIoControlAccess WdmlibIoValidateDeviceIoControlAccess
+
+NTSTATUS
+WdmlibIoValidateDeviceIoControlAccess(
+  PIRP Irp,
+  ULONG RequiredAccess
+);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _WDMSEC_H_ */
-- 
2.26.2

_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to