System.SysUtils.SysErrorMessage

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function SysErrorMessage(ErrorCode: Cardinal; AModuleHandle: THandle): string;

C++

extern DELPHI_PACKAGE System::UnicodeString __fastcall SysErrorMessage(unsigned ErrorCode, NativeUInt AModuleHandle = (NativeUInt)(0x0));

Properties

Type Visibility Source Unit Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

Converts OS error codes into strings.

SysErrorMessage returns an error message string that corresponds to the specified OS error code.

Note: You can get the error code associated with a specific error using the System.GetLastError function.

See Also