IWMDMLogger Interface (deprecated)
This is preliminary documentation and subject to change.
This topic documents a feature of the Windows Media Device Manager SDK. We recommend that you migrate your application to use the Windows Portable Devices API. For more information, see the Windows Portable Devices SDK.
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.
In addition to the methods inherited from IUnknown, the IWMDMLogger interface exposes the following methods.
Method | Description |
Enable | Enables or disables logging. |
GetLogFileName | Returns the full path to the current log file. |
GetSizeParams | Retrieves the current size parameters of the current log file. |
IsEnabled | Determines whether logging is enabled. |
LogDword | Logs a DWORD value to the current log file. |
LogString | Logs a string to the current log file. |
Reset | Deletes the contents of the current log file. |
SetLogFileName | Sets the full path to the current log file. All subsequent log entries are placed in this file. |
SetSizeParams | Sets the current size parameters for the current log file. |
See Also