Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.6 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. PpRegState.h
  5. Abstract:
  6. This header exposes routines for reading and writing PnP registry state
  7. information.
  8. Author:
  9. Adrian J. Oney - April 21, 2002
  10. Revision History:
  11. --*/
  12. #define DSIFLAG_DEVICE_TYPE 0x00000001
  13. #define DSIFLAG_SECURITY_DESCRIPTOR 0x00000002
  14. #define DSIFLAG_CHARACTERISTICS 0x00000004
  15. #define DSIFLAG_EXCLUSIVE 0x00000008
  16. typedef struct {
  17. ULONG Flags;
  18. DEVICE_TYPE DeviceType;
  19. PSECURITY_DESCRIPTOR SecurityDescriptor;
  20. ULONG Characteristics;
  21. ULONG Exclusivity;
  22. } STACK_CREATION_SETTINGS, *PSTACK_CREATION_SETTINGS;
  23. NTSTATUS
  24. PpRegStateReadCreateClassCreationSettings(
  25. IN LPCGUID DeviceClassGuid,
  26. IN PDRIVER_OBJECT DriverObject,
  27. OUT PSTACK_CREATION_SETTINGS StackCreationSettings
  28. );
  29. NTSTATUS
  30. PpRegStateUpdateStackCreationSettings(
  31. IN LPCGUID DeviceClassGuid,
  32. IN PSTACK_CREATION_SETTINGS StackCreationSettings
  33. );
  34. VOID
  35. PpRegStateFreeStackCreationSettings(
  36. IN PSTACK_CREATION_SETTINGS StackCreationSettings
  37. );
  38. VOID
  39. PpRegStateLoadSecurityDescriptor(
  40. IN PSECURITY_DESCRIPTOR SecurityDescriptor,
  41. IN OUT PSTACK_CREATION_SETTINGS StackCreationSettings
  42. );
  43. VOID
  44. PpRegStateInitEmptyCreationSettings(
  45. OUT PSTACK_CREATION_SETTINGS StackCreationSettings
  46. );