headers/ddk: add wdmsec.h file

Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: Liu Hao <lh_mouse@126.com>
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_ */