Source: http://gkliu123.bokee.com/1446729.html
Character Type:
---------------------------------------------------
Actual identifier type meaning
Char char is an 8-character windows (ANSI) character.
Cchar char is an 8-character windows (ANSI) character.
Psz char * pointer to a Windows string ending with "null"
Pchar char * a char pointer
Pstr char * an 8-bit windows (ANSI) string pointer ending with "null"
Lpstr char * an 8-bit windows (ANSI) string pointer ending with "null"
Npstr char * an 8-bit windows (ANSI) string pointer ending with "null"
Pcstr const char * an 8-bit windows (ANSI) String constant pointer ending with "null"
Lpcstr const char * an 8-bit windows (ANSI) String constant pointer ending with "null"
Wchar wchar_t 16-bit Unicode Character
Pwch wchar * A wchar pointer
Pwchar wchar * A wchar pointer
Pwstr wchar * a 16-bit Unicode string pointer ending with "null"
Lpwstr wchar far * a 16-bit Unicode string pointer ending with "null"
Nwpstr wchar * a 16-bit Unicode string pointer ending with "null"
Pcwch const wchar * A wchar constant pointer
Lpcwch const wchar far * A wchar type constant pointer
Pcwstr const wchar * a 16-bit Unicode String constant pointer ending with "null"
Lpcwstr const wchar far * a 16-bit Unicode String constant pointer ending with "null"
Tchar wchar (or char) compatible characters (wchar in Unicode and char in Windows)
Ptchar wchar * (or char) A tchar pointer
Ptch lpwstr (or lpstr) Unicode is lpwstr type, and Windows is lpstr type
The Unicode value of lptch lpwstr (or lpstr) is lpwstr, and that of lpstr in Windows is
Ptstr lpwstr (or lpstr) Unicode is lpwstr type, and Windows is lpstr type
Lptstr lpwstr (or lpstr) is of the lpwstr type in Unicode and lpstr type in windows.
The Unicode value of pctstr pcwstr (or pcstr) is pcwstr, and that of pcstr is windows.
In the unicode format of lpctstr (or lpcstr), the value is of the lpcwstr type, and in windows, the value is of the lpcstr type.
Uchar unsigned char unsigned character type
Puchar uchar * A uchar pointer
BSTR olechar * 32-bit character pointer (not recommended)
Olechar wchar_t UNICODE character type (used for object link and embedded data types, such as Embedded Word documents)
Lpolestr olechar * an olechar pointer
Lpcolestr const olechar * points to a String constant pointer of the olechar type
---------------------------------------------------
Numeric type:
---------------------------------------------------
Actual identifier type meaning
Byte unsigned char 8-bit unsigned integer
Pbyte byte near * a byte pointer
Lpbyte byte far * a byte pointer
Tbyte wchar (or unsigned char) Unicode is wchar type, Windows is unsigned char type
Ptbyte wchar * (or unsigned char *) A tbyte pointer
Bool int Boolean variable, whose value is (true or false)
Pbool bool near * A bool pointer
Lpbool bool far * A bool pointer
Boolean byte Boolean variable, whose value is (true or false)
Pboolean Boolean * A boolean pointer
Short short 16-bit short INTEGER (Signed)
Pshort short * a short pointer
Ushort unsigned short integer
Pushort ushort * A ushort pointer
Int int 32-bit integer
Int32 32-bit integer
Int64 64-bit signed integer
Int_ptr signed integral type for pointer precision. Use when casting a pointer to an integer to perform pointer arithmetic.
Pint int near * an int pointer
Lpint int far * an int pointer
Uint unsigned int unsigned integer
Uint32 unsigned int32 type
Uint64 unsigned int64 type
Uint_ptr unsigned int_ptr type
Puint uint * A uint pointer
Long long 32-bit integer
Long32 32-bit integer
Long64 64-bit signed integer
Longlong _ int64 (or double) 64-bit signed integer
Long_ptr signed long type for pointer precision. Use when casting a pointer to a long to perform pointer arithmetic.
Plong long near * a long pointer
Lplong long far * a long pointer
Plonglong Longlong * A Longlong pointer
Ulong unsigned long type
Ulong32 unsigned long32
Ulong64 unsigned long64 type
Ulonglong unsigned _ int64 (or double) 64-bit unsigned integer
Ulong_ptr unsigned long_ptr type
Pulong ulong * A ulong pointer
Pulonglong ulonglong * A ulonglong pointer
Word unsigned short 16-bit unsigned integer
Pword word near * a word pointer
Lpword word far * a word pointer
DWORD unsigned long 32-bit unsigned integer
Dword32 32-bit unsigned integer
Dword64 64-bit unsigned integer
Dword_ptr
Unsigned long type for pointer precision. Use when casting a pointer
A long type to perform pointer arithmetic. (also commonly used
General 32-bit parameters that have been extended to 64 bits in 64-bit
Windows.
Pdword DWORD near * a dword pointer
Lpdword DWORD far * a dword pointer
Float float floating point variable
Pfloat float near * a float pointer
---------------------------------------------------
Handle class:
---------------------------------------------------
Actual identifier type meaning
Handle void * object handle (32-bit unsigned integer)
Phandle handle near * A handle pointer
Sphandle handle near * A handle pointer
Lphandle handle far * A handle pointer
Globalhandle handle: A Global handle
HDC handle device description table (DC) Handle
Hbitmap handle bitmap handle
Hbrush handle paint brush handle
Hicon handle icon handle
Hcursor hicon cursor handle
Hpalette handle palette handle
Hpen handle paint handle
Hconv Dynamic Data Exchange (DDE) Session handle
Haccel handle acceleration key table handle
Hconvlist DDE session List handle
Hddedata DDE data handle
Hdesk handle desktop handle
Hdlg dialog box handle
Hdrop has an internal drop structure handle.
Hdwp extended Window Location Structure handle
Henhmetafile handle enhances the metadata file handle
Hfile Int or short file handle, used in the openfile function, not createfile
Hfont handle font handle
Hgdiobj handle (void near *) GDI object handle
Hglobal handle global memory block handle
Hhook handle hook handle
Himagelist image list handle
Himc input description table handle
Hinstance handle instance handle (32-bit unsigned integer)
Hkey registration keyword handle
HKL handle input locale identifier.
Hlocal handle local memory block handle
Hmemu menu handle
Hmetafile handle Metafile handle
Hmidiin MIDI input file handle (MIDI: digital interface of the instrument)
Hmidiout MIDI output file handle (MIDI: digital interface of the instrument)
Hmmio file handle
One hmodule hinstance Program The handle of the module. The value is the start address of the module.
Hmonitor handle display monitor handle
Hrgn handle domain handle
Hrsrc handle resource handle
Hsz DDE string handle
Hwavein waveform input file handle
Hwaveout waveform output file handle
Lphwavein an hwavein pointer
Lphwaveout A waveout pointer
Hwinsta handle workstation handle
Hwnd handle window handle (32-bit unsigned integer)
Localhandle handle
SC _handle Service Control Manager Database handle
SC _lock bind Service Control Manager Database handle
Service_status_handle service status value handle
---------------------------------------------------
Function pointer class:
---------------------------------------------------
Identifier meaning
Mfenumproc this callback function enumerative meta file records
Enumfenumproc this callback function enumerates enhanced metadata records
Enumreslangproc this callback function enumeration resource language.
Enumresnameproc this callback function enumerates the Resource Name.
Enumrestypeproc this callback function enumerates the resource type.
Fontenumproc: font of the callback function Enumeration
Gobjenumproc this callback function enumeration graphical device interface (GDI) object
Hookproc hook process function pointer
The lpcchookproc pointer to the hook function defined by an application.
The lpcfhookproc pointer to the hook function defined by an application.
Lpfrhookproc points to a hook function pointer defined by an application.
Lpofnhookproc points to a hook function pointer defined by an application.
Lpprinthookproc points to the pointer of a hook function defined by an application
Lpsetuphookproc points to a hook function pointer defined by an application.
Farproc pointer to a long callback function
Dlgproc pointer to a dialog box
Lineddaproc points to the pointer of a callback function that processes row coordinates.
Lohandler_function pointer to a handler Function
Propenumproc points to the pointer of a callback function defined by an application. The features of the callback function enumeration window
Pfncallback pointer to a callback function
Phandler_routine points to a handler pointer
Timerproc points to the pointer of the timer callback function defined by an application
The wndenumproc pointer to an application-defined callback function. The callback function enumeration window
Wndproc 32-bit, pointer to the window process defined by an application
Yieldproc: pointer to an output callback function
---------------------------------------------------
Other types:
---------------------------------------------------
Actual identifier type meaning
Atom word atom (reference for a string in an atomic table)
Definition ID of the callback function
Lpresult is the return value of the window function or callback function (32-bit value)
Lresult long symbolic result of Message Processing
Colorref DWORD is a 32-bit color value consisting of red, green, and blue (RGB)
The identifier of the winapi apientry system function call protocol.
Wparam uint message Parameters
Lparam long message parameter, which is a 32-bit value. It is used as a parameter of the window function or callback function.
Critical_section critical segment object.
Lpcritical_section pointer of a critical segment object (critical_section)
Ctryid country name identifier.
Array of fmorder 32-bit font ing values
Langid word language identifier
Lcid: ID of the country in which DWORD is located
Plcid pdword: An lcid pointer
Type of the country in which lctype is located
Lpcolorref DWORD * A colorref pointer
Mcideviceid: device identifier of the media control interface (MCI)
Mmresult multimedia message processing result
The pointer of pcritical_section to a critical segment object (critical_section)
A phkey hkey pointer
Pointer_32 32-bit pointer. In a 32-bit system, it is a common pointer. In a 64-bit system, a high-byte 64-bit pointer is removed.
Pointer_64 64-bit pointer. In a 64-bit system, it is a common pointer. In a 32-bit system, it is a 32-bit pointer with extended symbols.
Psid pvoid pointer to an encrypted identifier (SID)
Encryption mask of regsam registration keywords
Size_t
Unsigned int the maximum number of bytes to which a pointer can
Point. Use for a count that must span the full range of a pointer.
Ssize_t signed size_t type
Unsigned unsigned attribute.
---------------------------------------------------
Structure:
---------------------------------------------------
Actual identifier type meaning
Lpcrect const rect far * rect structure constant pointer (32-bit)
Lpcrectl const rectl far * rectl structure constant pointer (32-bit)
The luid structure. Local unique identifier (locally unique identifier)
Pluid luid * A luid pointer
---------------------------------------------------
Empty class:
---------------------------------------------------
Actual identifier type meaning
Const const constant
Void void of any type
Pvoid void near * a pointer to any type
Lpvoid void far * a void type remote pointer
Lpcvoid const void far * a constant pointer to any type
---------------------------------------------------