Comparison between Windows API data types and Delphi Data Types

Source: Internet
Author: User
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
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.