IWMDMLogger::GetLogFileName method (wmdmlog.h)

The GetLogFileName method returns the full path to the current log file.

Syntax

HRESULT GetLogFileName(
  [out] LPSTR pszFilename,
  [in]  UINT  nMaxChars
);

Parameters

[out] pszFilename

Pointer to a buffer to receive the log file name.

[in] nMaxChars

Specifies the size of the pszFilename buffer. This is the maximum number of characters that can be placed in the buffer, including the terminating NULL character.

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.

Remarks

The default log file is < Windows directory >\System32\Wmdm.log.

Requirements

Requirement Value
Target Platform Windows
Header wmdmlog.h
Library Mssachlp.lib

See also

Enabling Logging

IWMDMLogger Interface