Windows Data Type |
Delphi Data Type |
Description |
Lpstr |
Pansichar |
String pointer |
Lpcstr |
Pansichar |
String pointer |
DWORD |
Longword |
Integer |
Bool |
Longbool |
Boolean |
Pbool |
^ Bool |
Pointer to a Boolean Value |
Pbyte |
^ Byte |
Pointer to the byte value |
Pint |
^ Integer |
Pointer to an integer |
Psingle |
^ Single |
Pointer to a single-precision floating point value |
Pword |
^ Word |
Pointer to a 16-bit value |
Pdword |
^ DWORD |
Pointer to a 32-bit value |
Lpdword |
Pdword |
Pointer to a 32-bit value |
Uchar |
Byte |
8-bit value (can be used to represent characters) |
Puchar |
^ Byte |
Pointer to an 8-bit value |
Short |
Smallint |
Signed 16-digit integer |
Uint |
Longword |
Unsigned 32-bit integer |
Puint |
^ Uint |
Pointer to an unsigned 32-bit integer |
Ulong |
Cardinal |
Unsigned 32-bit integer |
Pulong |
^ Ulong |
Pointer to an unsigned 32-bit integer |
Plongint |
^ Longint |
Pointer to a 32-bit value |
Pinteger |
^ Integer |
Pointer to a 32-bit value |
Psmallint |
^ Smallint |
Pointer to a 16-bit value |
Pdouble |
^ Double |
Pointer to a double-precision floating point value |
Lcid |
DWORD |
Local identifier |
Langid |
Word |
Language identifier |
Thandle |
Longword |
Object handle |
Phandle |
^ Thandle |
Pointer to handle |
Woaram |
Longint |
32-bit message Parameters |
Lparam |
Longint |
32-bit message Parameters |
Lresult |
Longint |
32-bit function return value |
Hwnd |
Longword |
Window handle |
Hhook |
Longword |
Windows Hook handle |
Atom |
Word |
String indexes in local or global atomic tables |
Hglobal |
Thandle |
Global Dynamic Memory handle |
Hlocal |
Thandle |
Local dynamic memory handle (no difference between 32-bit and hglobal) |
Farproc |
Pointer |
Pointer to a process. It is usually used as a parameter type in the function that requires callback. |
Hgdiobj |
Longword |
GDI object handle |
Hbitmap |
Longword |
Windows bitmap object handle |
Hbrush |
Longword |
Windows paint brush object handle |
HDC |
Longword |
Device environment handle |
Henhmetafile |
Longword |
Windows Enhanced Metafile object handle |
Hfont |
Longword |
Windows logical font object handle |
Hicon |
Longword |
Windows icon object handle |
Hmenu |
Longword |
Windows menu object handle |
Hmetafile |
Longword |
Windows Metafile object handle |
Hinst |
Thandle |
Instance object handle |
Hmodule |
Hinst |
Module handle |
Hpalette |
Longword |
Windows palette object handle |
Hpen |
Longword |
Windows paint brush object handle |
Hrgn |
Longword |
Windows region object handle |
Hrsrc |
Thandle |
Windows resource object handle |
HKL |
Longword |
Windows keyboard layout handle |
Hfile |
Longword |
Handle Of The opened file |
Hcursor |
Hicon |
Windows mouse cursor object handle |
Colorref |
DWORD |
Windows color index value handle, including red, green, and blue |