Windows data types explore - thousands of times to do you? (3)

zhaozj2021-02-16  32

Renewal

POINTER_32void * void * → POINTER_3232 bit pointers (Detailed omitted) POINTER_64void * void * → POINTER_6464 bit pointers (Detailed omitted) PSHORTshort * short → SHORT, SHORT * → PSHORTSHORT pointer PSTRchar * char → CHAR, CHAR * → PSTR8 bit Windows character ( ANSI) no terminated string pointer PTBYTEwchar_t * wchar_t → WCHAR, WCHAR * → PTBYTETBYTE pointer PTCHARwchar_t * wchar_t → WCHAR, WCHAR * → PTCHARTCHAR pointer PTSTRwchar_t * wchar_t → WCHAR, WCHAR * → LPWSTR → PTSTRPWSTR if UNICODE is defined, a PSTR otherwise.PTBYTEwchar_t * wchar_t → WCHAR, WCHAR * → PTBYTETBYTE pointer PTCHARwchar_t * wchar_t → WCHAR, WCHAR * → PTCHARTCHAR pointer PTSTRwchar_t * wchar_t → WCHAR, WCHAR * → LPWSTR → PTSTRA PWSTR if UNICODE is defined, a PSTR otherwise.PUCHARunsigned char * unsigned char → UCHAR, UCHAR * → PUCHARUCHAR pointer PUINTunsigned int * unsigned int * → PUINT (Oh, why not UINT * to define it?) UINT pointer PULONGunsigned long * unsigned long → ULONG, ULONG * → PULONGULONG pointer PUSHORTunsigned short * unsigned short → USHORT, USHORT * → PUSHORTUSHORT pointer PVOIDvoid * void * → PVOID any type of pointer PWCHARwchar_t * wchar_t → WCHAR, WCHAR * → PWCHARWCHAR pointer PWORDunsigned short * unsigned short → WORD, WORD near * → PWOR DWORD pointer PWSTRwchar_t * wchar_t → WCHAR, WCHAR * → PWSTR16 bit Windows character (Unicode) string no end pointer REGSAMunsigned long unsigned long → DWORD → ACCESS_MASK → REGSAM registry value of the security access mask SC_HANDLESC_HANDLE__ structure pointer by the DECLARE_HANDLE ( name) macro definitions ...... Handle to a service control manager database.SC_LOCKvoid * void far * → LPVOID → SC_LOCKHandle to a service control manager database lock. SERVICE_STATUS_HANDLESERVICE_STATUS_HANDLE__ structure pointer DECLARE_HANDLE (name) is defined by the macro ...... Handle to a service status Value. Shortshort2Short → Short Short Needle Type (16 Bits)

Maximum number of bytes SIZE_Tunsigned long4unsigned long → ULONG_PTR → SIZE_T pointer pointing SSIZE_Tlong _W64 long → LONG_PTR → SSIZE_T signed SIZE_T.TBYTEwchar_t2wchar_t → WCHAR, WCHAR → TBYTE If UNICODE was defined WCHAR, otherwise CHARTCHARwchar_t2wchar_t → WCHAR, WCHAR → TCHAR If UNICODE defined, compared WCHAR, otherwise unsigned CHARUINTunsigned int is CHARUCHARunsigned char1unsigned char → UCHAR * unsigned int → UINT unsigned INTUINT_PTRunsigned int * unsigned int → UINT_PTR unsigned INT_PTR.UINT32unsigned int2unsigned int → UINT32 unsigned INT32.UINT64unsigned __int644unsigned __int64 → UINT64 unsigned INT64.ULONGunsigned long4unsigned long → ULONG unsigned LONG.ULONG_PTRunsigned long4unsigned long → ULONG_PTR unsigned LONG_PTR.ULONG32unsigned int2unsigned int → ULONG32 unsigned LONG32ULONG64unsigned __int644unsigned __int64 → ULONG64 unsigned LONG64ULONGLONGunsigned __int644unsigned __int64 → ULONGLONG64 bit unsigned integer not found uNSIGNED , we help it unsigned attribute USHORTunsigned short unsigned short → USHORT unsigned SHORT type VOIDvoid void → vOID any type WCHARwchar_t2wchar_t → WCHAR16 bit Unicode character WINAPI__stdcall call __stdcall → WINAPI system functions (API function) calling convention WORDunsigned short2unsigned short → WORD16 median Symbol integer wparamunsigned int * UN Signed INT → UINT_PTR → Parameters of WPARAM messnot Note: The definition of Declare_Handle Macro is as follows.

#ifdef STRICTtypedef void * HANDLE; #define DECLARE_HANDLE (name) struct name ## __ {int unused;}; / typedef struct name ## __ * name # elsetypedef PVOID HANDLE; #define DECLARE_HANDLE (name) typedef HANDLE name # endif in In the list, it is written in the macro definition in the first half, please pay attention.

转载请注明原文地址:https://www.9cbs.com/read-22058.html

New Post(0)