CALL DLL X This command will call a DLL with a variable number of parameters by passing in the actual pointer to the memory that holds the parameters and the number of parameters to consider.
Syntax
    CALL DLL X DLL Number, Function Name, Parameter Pointer, Number Of Params)
Parameters
    DLL Number
Integer The DLL number as specified by the LOAD DLL command
    Function Name
String The exact name of the function to call
    Parameter Pointer
Integer The memory pointer to the data to pass in
    Number Of Params
Integer The number of parameters stored at the memory location specified
Returns
Holds the return DWORD value from the called DLL function
Example Code
    load dll "new.dll",1

    ptr as DWORD

    ptr=make memory(4*4)

    result=call dll x(1,"myfunc", ptr, 4)

    delete memory ptr

    delete dll 1
See also
SYSTEM Commands Menu Index