Notatka
Dostęp do tej strony wymaga autoryzacji. Może spróbować zalogować się lub zmienić katalogi.
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować zmienić katalogi.
This method logs an error code and custom message to AXE s pre-configured ETW session.
Syntax
virtual HRESULT LogErrorCode(
[in] HRESULT errorCode,
[in, optional] LPCWSTR messageFormat,
[in, optional] va_list *messageArguments
) = 0;
Parameters
-
errorCode [in]
-
The HRESULT error code to log.
-
messageFormat [in, optional]
-
An optional string value that can be a FormatMessage format string used for formatting custom messages.
-
messageArguments [in, optional]
-
A variable argument list to be used with the messageFormat parameter.
Return value
If the function succeeds, it returns S_OK. If it fails, it returns an error value.
Remarks
Managed code uses the Logging.LogErrorCode(Int32, IFormatProvider, String, Object[]) method.
Requirements
| Minimum supported client |
Windows 7 [desktop apps only] |
| Minimum supported server |
Windows Server 2008 R2 [desktop apps only] |
| Header |
|
| DLL |
|