wdmsec.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #ifndef _WDMSEC_H_
  7. #define _WDMSEC_H_
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. extern const UNICODE_STRING SDDL_DEVOBJ_KERNEL_ONLY;
  12. #define SDDL_DEVOBJ_INF_SUPPLIED SDDL_DEVOBJ_KERNEL_ONLY
  13. extern const UNICODE_STRING SDDL_DEVOBJ_SYS_ALL;
  14. extern const UNICODE_STRING SDDL_DEVOBJ_SYS_ALL_ADM_ALL;
  15. extern const UNICODE_STRING SDDL_DEVOBJ_SYS_ALL_ADM_RX;
  16. extern const UNICODE_STRING SDDL_DEVOBJ_SYS_ALL_ADM_RWX_WORLD_R;
  17. extern const UNICODE_STRING SDDL_DEVOBJ_SYS_ALL_ADM_RWX_WORLD_R_RES_R;
  18. extern const UNICODE_STRING SDDL_DEVOBJ_SYS_ALL_ADM_RWX_WORLD_RW_RES_R;
  19. extern const UNICODE_STRING SDDL_DEVOBJ_SYS_ALL_ADM_RWX_WORLD_RWX_RES_RWX;
  20. #undef IoCreateDeviceSecure
  21. #define IoCreateDeviceSecure WdmlibIoCreateDeviceSecure
  22. NTSTATUS
  23. WdmlibIoCreateDeviceSecure(
  24. PDRIVER_OBJECT DriverObject,
  25. ULONG DeviceExtensionSize,
  26. PUNICODE_STRING DeviceName,
  27. DEVICE_TYPE DeviceType,
  28. ULONG DeviceCharacteristics,
  29. BOOLEAN Exclusive,
  30. PCUNICODE_STRING DefaultSDDLString,
  31. LPCGUID DeviceClassGuid,
  32. PDEVICE_OBJECT *DeviceObject
  33. );
  34. #undef RtlInitUnicodeStringEx
  35. #define RtlInitUnicodeStringEx WdmlibRtlInitUnicodeStringEx
  36. NTSTATUS
  37. WdmlibRtlInitUnicodeStringEx(
  38. PUNICODE_STRING DestinationString,
  39. PCWSTR SourceString
  40. );
  41. #undef IoValidateDeviceIoControlAccess
  42. #define IoValidateDeviceIoControlAccess WdmlibIoValidateDeviceIoControlAccess
  43. NTSTATUS
  44. WdmlibIoValidateDeviceIoControlAccess(
  45. PIRP Irp,
  46. ULONG RequiredAccess
  47. );
  48. #ifdef __cplusplus
  49. }
  50. #endif
  51. #endif /* _WDMSEC_H_ */