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.

73 lines
1.3 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1997 - 1998
  3. Module Name:
  4. pmwmireg.h
  5. Abstract:
  6. This file contains the prototypes of the routines to register for
  7. and handle WMI queries.
  8. Author:
  9. Bruce Worthington 26-Oct-1998
  10. Environment:
  11. kernel mode only
  12. Notes:
  13. Revision History:
  14. --*/
  15. #include <ntddk.h>
  16. #include <wdmguid.h>
  17. NTSTATUS
  18. PmDetermineDeviceNameAndNumber(
  19. IN PDEVICE_OBJECT DeviceObject,
  20. OUT PULONG WmiRegistrationFlags
  21. );
  22. NTSTATUS PmRegisterDevice(
  23. IN PDEVICE_OBJECT DeviceObject,
  24. ULONG WmiRegistrationFlags
  25. );
  26. NTSTATUS
  27. PmQueryWmiRegInfo(
  28. IN PDEVICE_OBJECT DeviceObject,
  29. OUT ULONG *RegFlags,
  30. OUT PUNICODE_STRING InstanceName,
  31. OUT PUNICODE_STRING *RegistryPath,
  32. OUT PUNICODE_STRING MofResourceName,
  33. OUT PDEVICE_OBJECT *Pdo
  34. );
  35. NTSTATUS
  36. PmQueryWmiDataBlock(
  37. IN PDEVICE_OBJECT DeviceObject,
  38. IN PIRP Irp,
  39. IN ULONG GuidIndex,
  40. IN ULONG InstanceIndex,
  41. IN ULONG InstanceCount,
  42. IN OUT PULONG InstanceLengthArray,
  43. IN ULONG BufferAvail,
  44. OUT PUCHAR Buffer
  45. );
  46. BOOLEAN
  47. PmQueryEnableAlways(
  48. IN PDEVICE_OBJECT DeviceObject
  49. );
  50. extern WMIGUIDREGINFO DiskperfGuidList[];
  51. extern ULONG DiskperfGuidCount;