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
73 lines
1.3 KiB
|
|
/*++
|
|
|
|
Copyright (C) Microsoft Corporation, 1997 - 1998
|
|
|
|
Module Name:
|
|
|
|
pmwmireg.h
|
|
|
|
Abstract:
|
|
|
|
This file contains the prototypes of the routines to register for
|
|
and handle WMI queries.
|
|
|
|
Author:
|
|
|
|
Bruce Worthington 26-Oct-1998
|
|
|
|
Environment:
|
|
|
|
kernel mode only
|
|
|
|
Notes:
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
|
|
#include <ntddk.h>
|
|
#include <wdmguid.h>
|
|
|
|
NTSTATUS
|
|
PmDetermineDeviceNameAndNumber(
|
|
IN PDEVICE_OBJECT DeviceObject,
|
|
OUT PULONG WmiRegistrationFlags
|
|
);
|
|
|
|
NTSTATUS PmRegisterDevice(
|
|
IN PDEVICE_OBJECT DeviceObject,
|
|
ULONG WmiRegistrationFlags
|
|
);
|
|
|
|
NTSTATUS
|
|
PmQueryWmiRegInfo(
|
|
IN PDEVICE_OBJECT DeviceObject,
|
|
OUT ULONG *RegFlags,
|
|
OUT PUNICODE_STRING InstanceName,
|
|
OUT PUNICODE_STRING *RegistryPath,
|
|
OUT PUNICODE_STRING MofResourceName,
|
|
OUT PDEVICE_OBJECT *Pdo
|
|
);
|
|
|
|
NTSTATUS
|
|
PmQueryWmiDataBlock(
|
|
IN PDEVICE_OBJECT DeviceObject,
|
|
IN PIRP Irp,
|
|
IN ULONG GuidIndex,
|
|
IN ULONG InstanceIndex,
|
|
IN ULONG InstanceCount,
|
|
IN OUT PULONG InstanceLengthArray,
|
|
IN ULONG BufferAvail,
|
|
OUT PUCHAR Buffer
|
|
);
|
|
|
|
BOOLEAN
|
|
PmQueryEnableAlways(
|
|
IN PDEVICE_OBJECT DeviceObject
|
|
);
|
|
|
|
extern WMIGUIDREGINFO DiskperfGuidList[];
|
|
|
|
extern ULONG DiskperfGuidCount;
|