WinAPI is most widely used as external functions in PowerBuilder.
WinAPI constants
PBInvoke provides an object with many WinAPI constants, n_pi_winapi.
The constants can be used without instantiation of the object via syntax:
n_pi_winapi.CONSTANT_NAME
Example:
lnv_SendMessage.of_invoke(Handle(w_win), n_pi_winapi.WM_KEYDOWN, 9 /*Tab*/, 0)
WinAPI types
PBInvoke has built-in support for the following WinAPI types:
TCHAR, TSTR, LPTSTR, LPCTSTR, WCHAR, WSTR, LPWSTR, LPCWSTR, CHAR, STR, LPSTR, LPCSTR, BYTE,BOOL, HWND, HINSTANCE,
LPBOOL, INT, UINT, UINT_PTR, DWORD, LPDWORD, HANDLE, LRESULT, LONG, ULONG, WPARAM, LPARAM, HMODULE, HHOOK,
WORD, LPWORD, SHORT, USHORT, VOID, PVOID, LPVOID, LPCVOID, FLOAT, LPSECURITY_ATTRIBUTES
See also
Calling DLL functions using PBInvoke
Handling TCHAR and TSTR. Unicode/ANSI function name suffixes
Supported data types
Working with callbacks
|
|
|
|