/*++ Copyright (c) 1999 Microsoft Corporation Module Name: wmlkm.h Abstract: Kernel mode definitions for an easy wmi tracing. Author: gorn Revision History: Comments: Needs to be moved to wmilib\inc when DCR is approved --*/ #ifndef WMLKM_H #define WMLKM_H 1 #pragma warning(disable: 4201) // error C4201: nonstandard extension used : nameless struct/union #include #include #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