IWMDMLogger::Enable method (wmdmlog.h)

The Enable method enables or disables logging. Logging is enabled by default.


  [in] BOOL fEnable


[in] fEnable

Flag that enables logging if it is true and disables logging if it is false.

Return value

The method returns an HRESULT. All the interface methods in Windows Media Device Manager can return any of the following classes of error codes:

  • Standard COM error codes
  • Windows error codes converted to HRESULT values
  • Windows Media Device Manager error codes
For an extensive list of possible error codes, see Error Codes.


Target Platform Windows
Header wmdmlog.h
Library Mssachlp.lib

See also

Enabling Logging

IWMDMLogger Interface