Datatypes › Software development

Windows HRESULT value

ID hresult

DatatypeNot PIIcategoricalDraft

This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).

32-bit result code with which Windows APIs and COM report the success or failure of an operation. Documentation, logs and error dialogs write it as 0x and eight hexadecimal digits. Failure codes have the highest bit set, so they start with 0x8 or a higher digit. The header file Winerror.h defines the values.

Categories
Software development
Countries
Global (not tied to a country)
Languages
Common to most languages
Quality
80/100 · missing: mapping (Wikidata, Schema.org, ...), detector coverage
Metacrafter rules
no detection rule yet
Supported by tools
no tool record lists this type yet

Regular expression

^0x[0-9A-Fa-f]{8}$

Python re syntax.

Test a value

Examples

ValueDescription
0x80070005 E_ACCESSDENIED, general access denied error
0x80004005 E_FAIL, unspecified failure
0x8007000E E_OUTOFMEMORY
0x00000000 S_OK, operation successful
0x5 invalid Short form of a system error code

Translations

LanguageNameDescription
RussianКод результата HRESULT (Windows)

Sources

Use this record