Name

HResult Type

Syntax

type HResult = LongWord;

Description

HResult is the return type of most COM methods. The most significant bit is zero for success or one for an error. See the Windows API documentation to learn more about the HResult type and the standard error codes.

The SysUtils unit has several methods to help you use HResult values, such as Succeeded and Failed.

See Also

Safecall Directive

Get Delphi in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.