73 lines
1.2 KiB
C
73 lines
1.2 KiB
C
/*++
|
|
|
|
Copyright (c) 1999 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
wmlkm.h
|
|
|
|
Abstract:
|
|
|
|
Kernel mode definitions for an easy wmi tracing.
|
|
|
|
Author:
|
|
|
|
gorn
|
|
|
|
Revision History:
|
|
|
|
Comments:
|
|
|
|
--*/
|
|
#ifndef WMLKM_H
|
|
#define WMLKM_H 1
|
|
|
|
#pragma warning(disable: 4201) // error C4201: nonstandard extension used : nameless struct/union
|
|
#include <wmistr.h>
|
|
#include <evntrace.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct _WML_CONTROL_GUID_REG {
|
|
GUID Guid;
|
|
union {
|
|
struct {
|
|
ULONG EnableFlags;
|
|
ULONG EnableLevel;
|
|
};
|
|
UINT64 EnableFlags64;
|
|
};
|
|
TRACEHANDLE LoggerHandle;
|
|
} WML_CONTROL_GUID_REG, *PWML_CONTROL_GUID_REG;
|
|
|
|
typedef struct _WML_TINY_INFO {
|
|
PWML_CONTROL_GUID_REG ControlGuids;
|
|
ULONG GuidCount;
|
|
PDEVICE_OBJECT LowerDeviceObject;
|
|
PUNICODE_STRING DriverRegPath;
|
|
} WML_TINY_INFO, *PWML_TINY_INFO;
|
|
|
|
|
|
NTSTATUS
|
|
WmlTinySystemControl(
|
|
IN OUT PWML_TINY_INFO WmiLibInfo,
|
|
IN PDEVICE_OBJECT DeviceObject,
|
|
IN PIRP Irp
|
|
);
|
|
|
|
ULONG
|
|
WmlTrace(
|
|
IN ULONG Type,
|
|
IN LPCGUID TraceGuid,
|
|
IN TRACEHANDLE LoggerHandle,
|
|
... // Pairs: Length, Address
|
|
);
|
|
|
|
#ifdef __cplusplus
|
|
};
|
|
#endif
|
|
|
|
#endif // WMLKM_H
|