DPLプログラムから任意のDLL関数を直接呼ぶための準備をします。
REGISTERROUTINE <DLL名> , <DLL関数名> [ , <DLL関数仕様> [ , <DLL関数別名> ] ] |
構造 | コマンド | パラメータ |
---|---|---|
REGISTERROUTINE | 'kernel32', 'GetSystemDirectoryA', 'uSu' | |
$BUFF := #ALLOC(256) | ||
CALL | GetSystemDirectory($BUFF, 256) | |
DEBUG | $$RETURN, #STR($BUFF) | |
#FREE($BUFF) |
UINT GetSystemDirectoryA(char* lpszSysPath, UINT cbSysPath); |
文字 | Cのデータ型 | データ型 |
---|---|---|
v | void | |
c | char | 整数型 |
s | short | 整数型 |
i | int | 整数型 |
l | long | 整数型 |
b | BYTE(unsigned char) | 整数型 |
w | WORD(unsigned short) | 整数型 |
u | UINT(unsigned int) | 整数型 |
W | DWORD(unsigned long) | 整数型 |
f | float | 実数型 |
d | double | 実数型 |
P | void* | ポインタ型 |
S | char* | 文字列型 |
REGISTERROUTINE 'kernel32', 'GetSystemDirectoryA', 'uSu', PrivateFunc; |
CALL PrivateFunc($BUFF, 256) |