Pascal Scripting: LoadDLL

Prototype

function LoadDLL(const DLLName: String; var ErrorCode: Integer): HMODULE;

Description

Loads the specified DLL. Returns the DLL handle if the DLL was loaded successfully, zero otherwise. If zero is returned then ErrorCode specifies the error that occurred. Use SysErrorMessage(ErrorCode) to get a description of the error.

Remarks

This function is deprecated. See the Using DLLs topic.

Refer to the system error codes on MSDN [external link].