Memory.OpenFunction

number Memory.OpenFunction ( 

number  ID,

string  FunctionName,

number  CallConvention,

string  ReturnType )

Description

Open a Dll or library for calling it.

Parameters

ID

(number) Number of your library that before you opened it with .OpenLibrary .

FunctionName

(string) The name of the function within the DLL or library.

CallConvention

(number) The calling convention that AutoPlay will use when calling the DLL function, two way to call one C call and two is STD call.

ReturnType

(string) The type of value returned from the function.

Returns

(number) One number that must get it for call that function or free it.

ResultVariable

When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.

Note: These Apis is in the beta release, be aware.

Note: These new Apis can't return int64, float and double.

Example

Memory.OpenLibrary(0, "user32.dll") a = Memory.OpenFunction(0, "MessageBoxA", DLL_CALL_STDCALL, DLL_RETURN_INT) Dialog.Message("", a)

See also:  Related Actions

Сайт управляется системой uCoz