IWMDMLogger::LogDword method (wmdmlog.h)

The LogDword method logs a DWORD value to the current log file. A carriage return and line feed are added to each log entry.

Syntax

HRESULT LogDword(
  [in] DWORD dwFlags,
  [in] LPSTR pszSrcName,
  [in] LPSTR pszLogFormat,
  [in] DWORD dwLog
);

Parameters

[in] dwFlags

Flags that control the way a string is logged. This parameter is a combination of one or more of the following values.

Value Description
WMDM_LOG_SEV_INFO Tag the log entry as informational.
WMDM_LOG_SEV_WARN Tag the log entry as a warning.
WMDM_LOG_SEV_ERROR Tag the log entry as an error.
WMDM_LOG_NOTIMESTAMP Do not include a time stamp on the log entry. Time stamps are in ISO format minus the time-zone information.

[in] pszSrcName

Optional pointer to a string containing the name of the module that is making the log entry.

[in] pszLogFormat

Pointer to a string that specifies the format of the log string. This string is of the same form as the format string for the printf function.

[in] dwLog

DWORD value to log.

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.

Requirements

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

See also

Enabling Logging

IWMDMLogger Interface