(C++) Windows typedefs

February 24, 2017 · View on GitHub

 

 

 

 

 

(C++) Windows typedefs

 

The header file 'windows.h' contains some typedefs. I list some here:

 


//From the header file windef.h: typedef unsigned long ULONG; typedef ULONG *PULONG; typedef unsigned short USHORT; typedef USHORT *PUSHORT; typedef unsigned char UCHAR; typedef UCHAR *PUCHAR; typedef char *PSZ; typedef unsigned long       DWORD; typedef int                 BOOL; typedef unsigned char       BYTE; typedef unsigned short      WORD; typedef float               FLOAT; typedef FLOAT               *PFLOAT; typedef BOOL near           *PBOOL; typedef BOOL far            *LPBOOL; typedef BYTE near           *PBYTE; typedef BYTE far            *LPBYTE; typedef int near            *PINT; typedef int far             *LPINT; typedef WORD near           *PWORD; typedef WORD far            *LPWORD; typedef long far            *LPLONG; typedef DWORD near          *PDWORD; typedef DWORD far           *LPDWORD; typedef void far            *LPVOID; typedef CONST void far      *LPCVOID; typedef int                 INT; typedef unsigned int        UINT; typedef unsigned int        *PUINT; /* Types use for passing & returning polymorphic values */ typedef UINT_PTR            WPARAM; typedef LONG_PTR            LPARAM; typedef LONG_PTR            LRESULT;