IWMDMLogger interface (wmdmlog.h)
The IWMDMLogger interface is used by Windows Media Device Manager applications and service providers to log entries in a common log file. Components do not need to be certified to use this object.
This interface is exposed by a COM object that must be created using the class ID CLSID_WMDMLogger, as shown here:
IWMDMLogger* m_pLogger = NULL;
CoCreateInstance(CLSID_WMDMLogger, NULL, CLSCTX_ALL, __uuidof(IWMDMLogger), (void**)&m_pLogger);
This interface GUID is not properly defined in mssachlp.lib; therefore, to get the proper definitions when implementing this interface, you must #include both mswmdm.h and wmdmlog_i.c from wmdmlog.idl.
Inheritance
The IWMDMLogger interface inherits from the IUnknown interface. IWMDMLogger also has these types of members:
Methods
The IWMDMLogger interface has these methods.
IWMDMLogger::Enable The Enable method enables or disables logging. Logging is enabled by default. |
IWMDMLogger::GetLogFileName The GetLogFileName method returns the full path to the current log file. |
IWMDMLogger::GetSizeParams The GetSizeParams method retrieves the current size parameters of the current log file. |
IWMDMLogger::IsEnabled The IsEnabled method determines whether logging is enabled. |
IWMDMLogger::LogDword The LogDword method logs a DWORD value to the current log file. A carriage return and line feed are added to each log entry. |
IWMDMLogger::LogString The LogString method logs a string to the current log file. A carriage return and line feed are added to each log entry. |
IWMDMLogger::Reset The Reset method deletes the contents of the current log file. |
IWMDMLogger::SetLogFileName The SetLogFileName method sets the full path to the current log file. All subsequent log entries will be placed in this file. |
IWMDMLogger::SetSizeParams The SetSizeParams method sets the current size parameters for the current log file. |
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | wmdmlog.h |