Supported data types |
PBInvoke library documetation > Reference > Supported data types |
Simple types
The folowing C/C++ types are supported
For structs/unions the packing attribute can be specified. See the reference.
For functions and function pointers a few attributes are supported. See the reference.
A developer can declare any custom C type using one or more C typedef operators separated by ";" and passed as a string to n_pi_core.of_declare(), as follows:
n_pi_core lnv_core lnv_core.of_declare(" & typedef void *LPCITEMIDLIST, *LPITEMIDLIST; & typedef int (CALLBACK* BFFCALLBACK)(HWND hwnd, UINT uMsg, LPARAM lParam, LPARAM lpData); & ") |
The most widely used WinAPI types are predeclared in PBInvoke.
These are: 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
© 2003-2011 Desta, Ltd. All rights reserved. | SupportDesk |