SetSimpleDialogResourceScript
Declaration
Delphi (DLL)
function SetSimpleDialogResourceScript(ResourceName: ShortString; ScriptFilePath: PAnsiChar; WPARAM: integer):integer;Â register;
Â
C/C++ (DLL)
__stdcall int SOPAD_SetSimpleDialogResourceScript(char *ResourceName, char *ScriptFilePath, int WParam);
ActiveX
HRESULT _stdcall SetSimpleDialogResourceScript([in] BSTR ResourceName, [in] BSTR ScriptFilePath, [in] long WParam, [out, retval] long* Result);
Description
idea: load a script (XML) and run a Dialog user interaction
Â
Arguments
ResourceName: String;Â
not used yet
ScriptFilePath: string
not used yet
Â
WParam:DWORD
not used yet
Return value
SetSimpleDialogResourceScript returns (SOPAD_ERROR_SUCCESS = 0) if it was possible to cache the settings.
Otherwise the function returns the appropriate error code. You can get extended error code with the help of GetSOPadError call.
Possible error codes are listed below:
const SOPAD_ERROR_SUCCESS = 0;
const SOPAD_ERROR_SET_MODE_FAILED = 1;
const SOPAD_ERROR_DEVICE_FILTERED_OUT = 6;
const SOPAD_ERROR_DEVICE_OPENED = 7;
const SOPAD_ERROR_FNC_FAILED = 12;
const SOPAD_ERROR_FNC_NOT_SUPPORTED = 13;
const SOPAD_ERROR_DEVICE_NOT_FOUND = 14;
See also
Â