大网数据广告活动
账户与安全

Common HRESULT Values

· 52CE 我爱测

The HRESULT values in this article are the most common. More values are contained in the header file Winerror.h.

HRESULT values are used in Windows programming to indicate the success or failure of operations. They are 32-bit values that can be used to represent both success and error conditions.

Listing of common HRESULT values

The following HRESULT values are the most common. More values are contained in the header file Winerror.h.

Here are the values listed alphabetically by name:

Name Description Value
S_OK Operation successful 0x00000000
E_ABORT Operation aborted 0x80004004
E_ACCESSDENIED General access denied error 0x80070005
E_FAIL Unspecified failure 0x80004005
E_HANDLE Handle that is not valid 0x80070006
E_INVALIDARG One or more arguments are not valid 0x80070057
E_NOINTERFACE No such interface supported 0x80004002
E_NOTIMPL Not implemented 0x80004001
E_OUTOFMEMORY Failed to allocate necessary memory 0x8007000E
E_POINTER Pointer that is not valid 0x80004003
E_UNEXPECTED Unexpected failure 0x8000FFFF

Here are the values listed in numeric order by value:

Value Name Description
0x00000000 S_OK Operation successful
0x80004001 E_NOTIMPL Not implemented
0x80004002 E_NOINTERFACE No such interface supported
0x80004003 E_POINTER Pointer that is not valid
0x80004004 E_ABORT Operation aborted
0x80004005 E_FAIL Unspecified failure
0x8000FFFF E_UNEXPECTED Unexpected failure
0x80070005 E_ACCESSDENIED General access denied error
0x80070006 E_HANDLE Handle that is not valid
0x8007000E E_OUTOFMEMORY Failed to allocate necessary memory
0x80070057 E_INVALIDARG One or more arguments are not valid

Related content

GetLastError

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 07/09/2025
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。