Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
WebAuthNGetErrorName function (webauthn.h)
Returns a human-readable error name string for the specified HRESULT error code returned by a WebAuthn function.
Syntax
PCWSTR WebAuthNGetErrorName(
HRESULT hr
);
Parameters
hr
The HRESULT error code to translate.
Return value
A pointer to a null-terminated wide string that contains the W3C error name. The caller must not free this string.
Remarks
The following table lists the mappings from HRESULT values to W3C error name strings:
| Error Code | Error Name |
|---|---|
| S_OK | Success |
| NTE_EXISTS | InvalidStateError |
| HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED) NTE_NOT_SUPPORTED NTE_TOKEN_KEYSET_STORAGE_FULL |
ConstraintError |
| NTE_INVALID_PARAMETER | NotSupportedError |
| NTE_DEVICE_NOT_FOUND NTE_NOT_FOUND HRESULT_FROM_WIN32(ERROR_CANCELLED) NTE_USER_CANCELLED HRESULT_FROM_WIN32(ERROR_TIMEOUT) |
NotAllowedError |
| All other HRESULT values | UnknownError |
Requirements
| Requirement | Value |
|---|---|
| Header | webauthn.h |
| Library | OneCoreUAP.Lib |
See also
Feedback
Was this page helpful?
