namespace ProtonVPN.OperatingSystems.WebAuthn.Interop.Enums;
///
/// Error codes relevant to the WebAuthN API.
///
/// Corresponds to HRESULT.
public enum HResult : uint
{
///
/// Operation successful
///
/// Corresponds to S_OK.
Success = 0,
///
/// The action was cancelled by the user.
///
/// Corresponds to NTE_USER_CANCELLED.
ActionCancelled = 0x80090036,
///
/// The operation was canceled by the user.
///
/// Corresponds to HRESULT_FROM_WIN32(ERROR_CANCELLED).
OperationCancelled = 0x800704C7,
///
/// Object already exists.
///
/// Corresponds to NTE_EXISTS.
ObjectAlreadyExists = 0x8009000F,
///
/// The data is invalid.
///
/// Corresponds to HRESULT_FROM_WIN32(ERROR_INVALID_DATA).
InvalidData = 0x8007000D,
///
/// The request is not supported.
///
/// Corresponds to HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED).
RequestNotSupported = 0x80070032,
///
/// The requested operation is not supported.
///
/// Corresponds to NTE_NOT_SUPPORTED.
OperationNotSupported = 0x80090029,
///
/// The security token does not have storage space available for an additional container.
///
/// Corresponds to NTE_TOKEN_KEYSET_STORAGE_FULL.
KeyStorageFull = 0x80090023,
///
/// The parameter is incorrect.
///
/// Corresponds to NTE_INVALID_PARAMETER.
ParameterInvalid = 0x80090027,
///
/// The device that is required by this cryptographic provider is not found on this platform.
///
/// Corresponds to NTE_DEVICE_NOT_FOUND.
DeviceNotFound = 0x80090035,
///
/// Object was not found.
///
/// Corresponds to NTE_NOT_FOUND.
ObjectNotFound = 0x80090011,
///
/// This operation returned because the timeout period expired.
///
/// Corresponds to HRESULT_FROM_WIN32(ERROR_TIMEOUT).
OperationTimeout = 0x800705B4,
///
/// The key container could not be opened.
///
/// Corresponds to NTE_BAD_KEYSET.
BadKeyset = 0x80090016,
///
/// No smart card readers are available.
///
/// Corresponds to SCARD_E_NO_READERS_AVAILABLE.
NoReadersAvailable = 0x8010002E
}