WdsCliLog function (wdsclientapi.h)
Sends a log event to the WDS server.
Syntax
HRESULT WDSCLIAPI WdsCliLog(
[in] HANDLE hSession,
[in] ULONG ulLogLevel,
[in] ULONG ulMessageCode,
...
);
Parameters
[in] hSession
A handle to a session with a WDS server. This was a handle returned by the WdsCliCreateSession function.
[in] ulLogLevel
Indicates the threshold severity required to log an event. The WDS server will log events only if the server log level is greater than or equal to the value specified.
This parameter can have one of the following values.
WDS_LOG_LEVEL_DISABLED (0)
WDS_LOG_LEVEL_ERROR (1)
WDS_LOG_LEVEL_WARNING (2)
WDS_LOG_LEVEL_INFO (3)
[in] ulMessageCode
The type of message that is being logged.
...
The quantity and type of the additional arguments varies with the value of the ulMessageCode parameter.
Return value
If the function succeeds, the return is S_OK.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | wdsclientapi.h |
Library | WdsClientAPI.lib |
DLL | WdsClientAPI.dll |