EasyManua.ls Logo

ASIX Forte - UP_DLL.DLL Library

ASIX Forte
102 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Page 74
5.8
UP_DLL.DLL Library
Thanks to this library strings can be exchanged with the
UP program.
As the library needs to communicate with UP, the
program must be running. UP_DLL cannot work on its
own.
unitup_dll;
interface
FunctionUP_LoadFile(FileName:PChar;style:in
teger):integer;stdcall;
(*
*LoadFile(withextension.hexor.ppr);
*Loadingof.pprfilecanresultinloading*.
hexfiletoo;
*Resultcodesaresamelikeoncommand
*line.
*
*Style|
=1;UPwillbequietonfileload*errors
*Style|=2;UPwilldonopreviousfile
*saving
*
*)
FunctionUP_GetStrValue(ValueName:PChar;Value:
PChar;Size:integer):integer;stdcall;
FunctionUP_GetIntValue(ValueName:PChar;varVa
lue:integer):LongBool;stdcall;
FunctionUP_SetStrValue(ValueName:PChar;Value:
PChar):LongBool;stdcall;
FunctionUP_SetIntValue(ValueName:PChar;Value:
integer):LongBool;stdcall;
FunctionUP_LoadFile_Wnd(WndClass:PChar;FileNam
e:PChar;style:integer):integer;stdcall;
FunctionUP_SetStrValue_Wnd(WndClass:PChar;Valu
eName:PChar;Value:PChar):BOOL;stdcall;
FunctionUP_SetIntValue_Wnd(WndClass:PChar;Valu
eName:PChar;Value:integer):BOOL;stdcall;
FunctionUP_GetStrValue_Wnd(WndClass:PChar;Valu
eName:PChar;Value:PChar;Size:integer):inte
ger;stdcall;
FunctionUP_GetIntValue_Wnd(WndClass:PChar;Valu
eName:PChar;varValue:integer):LongBool;std
call;
(*
*Allthesefunctionsareusedforchanging
*internalsettingsofUPinruntime.
*UP_GetIntValue,UP_SetStrValue,
*UP_SetIntValuereturnsnonzeroif
*successful
*UP_GetStrValuereturnsamountof
*characterstocopyintoValuestring
*includingnullterminator
*IfSizeislessthanrequiedsize,no
*charactersarecopied.
*)
implementation
functionUP_LoadFile;external'up_dll.dll';
functionUP_GetStrValue;external'up_dll.dll';
functionUP_GetIntValue;external'up_dll.dll';
functionUP_SetStrValue;external'up_dll.dll';
functionUP_SetIntValue;external'up_dll.dll';
functionUP_LoadFile_Wnd;external'up_dll.dll';
functionUP_SetStrValue_Wnd;external'up_dll.dl
l';
functionUP_SetIntValue_Wnd;external'up_dll.dl

Table of Contents