Source code of Windows XP (NT5)
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.

50 lines
1002 B

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. PiRegState.h
  5. Abstract:
  6. This header contains private information for reading and writing PnP
  7. registry state information. This file is meant to be included only
  8. by ppregstate.c.
  9. Author:
  10. Adrian J. Oney - April 21, 2002
  11. Revision History:
  12. --*/
  13. //
  14. // Define a private value for a device type that doesn't exist.
  15. //
  16. #define FILE_DEVICE_UNSPECIFIED 0
  17. typedef enum {
  18. NOT_VALIDATED = 0,
  19. VALIDATED_SUCCESSFULLY,
  20. VALIDATED_UNSUCCESSFULLY
  21. } PIDESCRIPTOR_STATE;
  22. NTSTATUS
  23. PiRegStateReadStackCreationSettingsFromKey(
  24. IN HANDLE ClassOrDeviceKey,
  25. OUT PSTACK_CREATION_SETTINGS StackCreationSettings
  26. );
  27. NTSTATUS
  28. PiRegStateOpenClassKey(
  29. IN LPCGUID DeviceClassGuid,
  30. IN ACCESS_MASK DesiredAccess,
  31. IN LOGICAL CreateIfNotPresent,
  32. OUT ULONG *Disposition OPTIONAL,
  33. OUT HANDLE *ClassKeyHandle
  34. );