|
发表于 2012-6-30 22:40:31
|
显示全部楼层
湖南省衡阳市
Win 32下面的数据类型
经常用VC++开发软件的朋友应该知道, 微软对以有的C++类型进行了包装,使其更明了,且更适合应用于windows下面的开发.
ATOM typedef WORD ATOM;
BOOL
typedef int BOOL;
BOOLEAN typedef BYTE BOOLEAN;
BYTE
typedef unsigned char BYTE;
CALLBACK
#define CALLBACK __stdcall
CHAR
typedef char CHAR;
COLORREF
typedef DWORD COLORREF;
CONST
#define CONST const
DWORD
typedef unsigned long DWORD;
DWORDLONG
typedef ULONGLONG DWORDLONG;
DWORD_PTR
typedef ULONG_PTR DWORD_PTR;
DWORD32
typedef unsigned int DWORD32;
DWORD64
typedef unsigned __int64 DWORD64;
FLOAT
typedef float FLOAT;
HACCEL
typedef HANDLE HACCEL;
HALF_PTR
#ifdef _WIN64
typedef int HALF_PTR;
#else
typedef short HALF_PTR;
#endif
HANDLE
typedef PVOID HANDLE;
HBITMAP
typedef HANDLE HBITMAP;
HBRUSH
typedef HANDLE HBRUSH;
HCOLORSPACE
#if(WINVER >= 0x0400)
typedef HANDLE HCOLORSPACE;
#endif
HCONV
typedef HANDLE HCONV;
HCONVLIST
typedef HANDLE HCONVLIST;
HCURSOR
typedef HICON HCURSOR;
HDC
typedef HANDLE HDC;
HDDEDATA
typedef HANDLE HDDEDATA;
HDESK
typedef HANDLE HDESK;
HDROP
typedef HANDLE HDROP;
HDWP typedef HANDLE HDWP;
HENHMETAFILE
typedef HANDLE HENHMETAFILE;
HFILE
typedef int HFILE;
HFONT
typedef HANDLE HFONT;
HGDIOBJ
typedef HANDLE HGDIOBJ;
HGLOBAL
typedef HANDLE HGLOBAL;
HHOOK
typedef HANDLE HHOOK;
HICON
typedef HANDLE HICON;
HINSTANCE
typedef HANDLE HINSTANCE;
HKEY
typedef HANDLE HKEY;
HKL
typedef HANDLE HKL;
HLOCAL
typedef HANDLE HLOCAL;
HMENU
typedef HANDLE HMENU;
HMETAFILE
typedef HANDLE HMETAFILE;
HMODULE
typedef HINSTANCE HMODULE;
HMONITOR
if(WINVER >= 0x0500) typedef HANDLE HMONITOR;
HPALETTE
typedef HANDLE HPALETTE;
HPEN
typedef HANDLE HPEN;
HRESULT
typedef LONG HRESULT;
HRGN
typedef HANDLE HRGN;
HRSRC
typedef HANDLE HRSRC;
HSZ
typedef HANDLE HSZ;
HWINSTA
typedef HANDLE WINSTA;
HWND
typedef HANDLE HWND;
INT typedef int INT;
INT_PTR
#if defined(_WIN64)
typedef __int64 INT_PTR;
#else
typedef int INT_PTR;
#endif
INT32
typedef signed int INT32;
INT64
typedef signed __int64 INT64;
LANGID
typedef WORD LANGID;
LCID
typedef DWORD LCID;
LCTYPE
typedef DWORD LCTYPE;
LGRPID
typedef DWORD LGRPID;
LONG
typedef long LONG;
LONGLONG #if !defined(_M_IX86)
typedef __int64 LONGLONG;
#else
typedef double LONGLONG;
#endif
LONG_PTR #if defined(_WIN64)
typedef __int64 LONG_PTR;
#else
typedef long LONG_PTR;
#endif
LONG32
typedef signed int LONG32;
LONG64
typedef __int64 LONG64;
LPARAM
typedef LONG_PTR LPARAM;
LPBOOL
typedef BOOL far *LPBOOL;
LPBYTE
typedef BYTE far *LPBYTE;
LPCOLORREF
typedef DWORD *LPCOLORREF;
LPCSTR
typedef __nullterminated CONST CHAR *LPCSTR;
LPCTSTR
#ifdef UNICODE typedef LPCWSTR LPCTSTR; #else typedef LPCSTR LPCTSTR; #endif
LPCVOID
typedef CONST void *LPCVOID;
LPCWSTR
typedef CONST WCHAR *LPCWSTR;
LPDWORD
typedef DWORD *LPDWORD;
LPHANDLE
typedef HANDLE *LPHANDLE;
LPINT
typedef int *LPINT;
LPLONG
typedef long *LPLONG;
LPSTR typedef CHAR *LPSTR;
LPTSTR #ifdef UNICODE
typedef LPWSTR LPTSTR;
#else
typedef LPSTR LPTSTR;
#endif
LPVOID
typedef void *LPVOID;
LPWORD
typedef WORD *LPWORD;
LPWSTR
typedef WCHAR *LPWSTR;
LRESULT
typedef LONG_PTR LRESULT;
PBOOL typedef BOOL *PBOOL;
PBOOLEAN typedef BOOLEAN *PBOOLEAN;
PBYTE
typedef BYTE *PBYTE;
PCHAR
typedef CHAR *PCHAR;
PCSTR
typedef CONST CHAR *PCSTR;
PCTSTR
#ifdef UNICODE typedef LPCWSTR PCTSTR;#else typedef LPCSTR PCTSTR; #endif
PCWSTR typedef CONST WCHAR *PCWSTR;
PDWORD
typedef DWORD *PDWORD;
PDWORDLONG
typedef DWORDLONG *PDWORDLONG;
PDWORD_PTR
typedef DWORD_PTR *PDWORD_PTR;
PDWORD32
typedef DWORD32 *PDWORD32;
PDWORD64
typedef DWORD64 *PDWORD64;
PFLOAT
typedef FLOAT *PFLOAT;
PHALF_PTR
#ifdef _WIN64 typedef HALF_PTR *PHALF_PTR;#else typedef HALF_PTR *PHALF_PTR;#endif
PHANDLE
typedef HANDLE *PHANDLE;
PHKEY
typedef HKEY *PHKEY;
PINT
typedef int *PINT;
PINT_PTR
typedef INT_PTR *PINT_PTR;
PINT32
typedef INT32 *PINT32;
PINT64
typedef INT64 *PINT64;
PLCID typedef PDWORD PLCID;
PLONG typedef LONG *PLONG;
PLONGLONG typedef LONGLONG *PLONGLONG;
PLONG_PTR typedef LONG_PTR *PLONG_PTR;
PLONG32 typedef LONG32 *PLONG32;
PLONG64 typedef LONG64 *PLONG64;
POINTER_32 #if defined(_WIN64)#define POINTER_32 __ptr32#else#define POINTER32 #endif
POINTER_64 #define POINTER_64 __ptr64
POINTER_SIGNED #define POINTER_SIGNED __sptr
POINTER_UNSIGNED #define POINTER_UNSIGNED __uptr
PSHORT typedef SHORT *PSHORT;
PSIZE_T typedef SIZE_T *PSIZE_T;
PSSIZE_T typedef SSIZE_T *PSSIZE_T;
PSTR typedef CHAR *PSTR;
PTBYTE typedef TBYTE *PTBYTE;
PTCHAR typedef TCHAR *PTCHAR;
PTSTR #ifdef UNICODE typedef LPWSTR PTSTR;#else typedef LPSTR PTSTR; #endif
PUCHAR typedef UCHAR *PUCHAR;
PUHALF_PTR #ifdef _WIN64 typedef UHALF_PTR *PUHALF_PTR;#else typedef UHALF_PTR *PUHALF_PTR;#endif
PUINT typedef UINT *PUINT;
PUINT_PTR typedef UINT_PTR *PUINT_PTR;
PUINT32 typedef UINT32 *PUINT32;
PUINT64 typedef UINT64 *PUINT64;
PULONG typedef ULONG *PULONG;
PULONGLONG typedef ULONGLONG *PULONGLONG;
PULONG_PTR typedef ULONG_PTR *PULONG_PTR;
PULONG32 typedef ULONG32 *PULONG32;
PULONG64 typedef ULONG64 *PULONG64;
PUSHORT typedef USHORT *PUSHORT;
PVOID typedef void *PVOID;
PWCHAR typedef WCHAR *PWCHAR;
PWORD typedef WORD *PWORD;
PWSTR typedef WCHAR *PWSTR;
SC_HANDLE typedef HANDLE SC_HANDLE;
SC_LOCK typedef LPVOID SC_LOCK;
SERVICE_STATUS_HANDLE typedef HANDLE SERVICE_STATUS_HANDLE;
SHORT typedef short SHORT;
SIZE_T typedef ULONG_PTR SIZE_T;
SSIZE_T typedef LONG_PTR SSIZE_T;
TBYTE #ifdef UNICODE typedef WCHAR TBYTE;#else typedef unsigned char TBYTE; #endif
TCHAR #ifdef UNICODE typedef WCHAR TCHAR;#else typedef char TCHAR; #endif
UCHAR typedef unsigned char UCHAR;
UHALF_PTR #ifdef _WIN64 typedef unsigned int UHALF_PTR;#else typedef unsigned short UHALF_PTR;#endif
UINT typedef unsigned int UINT;
UINT_PTR #if defined(_WIN64) typedef unsigned __int64 UINT_PTR;#else typedef unsigned int UINT_PTR;#endif
UINT32 typedef unsigned int UINT32;
UINT64 typedef usigned __int 64 UINT64;
ULONG typedef unsigned long ULONG;
ULONGLONG #if !defined(_M_IX86) typedef unsigned __int64 ULONGLONG;#else typedef double ULONGLONG#endif
ULONG_PTR #if defined(_WIN64) typedef unsigned __int64 ULONG_PTR;#else typedef unsigned long ULONG_PTR;#endif
ULONG32 typedef unsigned int ULONG32;
ULONG64 typedef unsigned __int64 ULONG64;
UNICODE_STRING typedef struct _UNICODE_STRING { USHORT Length; USHORT MaximumLength; PWSTR Buffer;} UNICODE_STRING;typedef UNICODE_STRING *PUNICODE_STRING; typedef const UNICODE_STRING *PCUNICODE_STRING;
USHORT typedef unsigned short USHORT;
USN typedef LONGLONG USN;
VOID #define VOID void
WCHAR typedef wchar_t WCHAR;
WINAPI #define WINAPI __stdcall
WORD typedef unsigned short WORD;
WPARAM typedef UINT_PTR WPARAM;
|
|