#ifndef _NTWMI_H
//
// Logger configuration and running statistics. This structure is used
//
typedef struct _WMI_LOGGER_INFORMATION
{
WNODE_HEADER Wnode; // Had to do this since wmium.h comes later
ULONG BufferSize; // buffer size for logging (in kbytes)
ULONG MinimumBuffers; // minimum to preallocate
ULONG MaximumBuffers; // maximum buffers allowed
ULONG MaximumFileSize; // maximum logfile size (in MBytes)
ULONG LogFileMode; // sequential, circular
ULONG FlushTimer; // buffer flush timer, in seconds
ULONG EnableFlags; // trace enable flags
union
{
LONG AgeLimit; // aging decay time, in minutes
LONG FlushThreshold; // Number of buffers to fill before flushing
} DUMMYUNIONNAME;
ULONG Wow; // TRUE if the logger started under WOW64
union
{
HANDLE LogFileHandle; // handle to logfile
ULONG64 LogFileHandle64;
} DUMMYUNIONNAME2;
union
{
ULONG NumberOfBuffers; // no of buffers in use
ULONG InstanceCount; // Number of Provider Instances
} DUMMYUNIONNAME3;
union
{
ULONG FreeBuffers; // no of buffers free
ULONG InstanceId; // Current Provider's Id for UmLogger
} DUMMYUNIONNAME4;
union
{
ULONG EventsLost; // event records lost
ULONG NumberOfProcessors; // Passed on to UmLogger
} DUMMYUNIONNAME5;
ULONG BuffersWritten; // no of buffers written to file
union
{
ULONG LogBuffersLost; // no of logfile write failures
ULONG Flags; // internal flags
} DUMMYUNIONNAME6;
ULONG RealTimeBuffersLost; // no of rt delivery failures
union
{
HANDLE LoggerThreadId; // thread id of Logger
ULONG64 LoggerThreadId64; // thread is of Logger
} DUMMYUNIONNAME7;
union
{
UNICODE_STRING LogFileName; // used only in WIN64
UNICODE_STRING64 LogFileName64; // Logfile name: only in WIN32
} DUMMYUNIONNAME8;
// mandatory data provided by caller
union
{
UNICODE_STRING LoggerName; // Logger instance name in WIN64
UNICODE_STRING64 LoggerName64; // Logger Instance name in WIN32
} DUMMYUNIONNAME9;
ULONG RealTimeConsumerCount; // Number of rt consumers
ULONG SpareUlong;
union
{
PVOID LoggerExtension;
ULONG64 LoggerExtension64;
} DUMMYUNIONNAME10;
} WMI_LOGGER_INFORMATION, *PWMI_LOGGER_INFORMATION;
View code on GitHub
No description available.