CallDLLFx

InstallShield 2018 » InstallScript Language Reference

Tip • The CallDLLFx function is supported only for compatibility with scripts created in previous versions of InstallShield. Consider using the more flexible method described in Calling a .dll File Function instead of using the CallDLLFx function.

The CallDLLFx function calls a function within a specified .dll file.

Syntax

CallDLLFx ( szDLL, szFunction, lvValue, svValue );

The function called must use the following fixed definition, where hwnd is the main window handle for the main InstallShield window:

LONG APIENTRY YourFunction (HWND hwnd, LPLONG lpIValue, LPSTR lpszValue);

Parameters

CallDLLFx Parameters

Parameter

Description

szDLL

Specifies the fully qualified file name of the .dll file that contains the function to execute.

szFunction

Specifies the name of the function in the .dll file specified in szDLL.

lvValue

Specifies a long integer variable to pass by reference to the .dll function.

svValue

Specifies a string variable to pass to the .dll function.

Return Values

The CallDLLFx function returns a long integer from the function in the .dll file.

See Also