Windows also uses a wide variety of new data types and type identifiers, most of which are defined in either the WinDef.H or WinUser.H header files. Table 2.3 lists a few of the more common data types.
Table 2.3: A Few Windows Data Types
Data type | Meaning |
FAR | Same as far. Identifies an address that originally used the segment:offset addressing schema. Now FAR simply identifies a (default) 32-bit address but may be omitted entirely in many cases. |
PASCAL | Same as pascal. The pascal convention demanded by Windows defines the order in which arguments are found in the stack when passed as calling parameters. |
WORD | Unsigned integer (16 bits) |
UINT | Unsigned integer, same as WORD |
DWORD | Double word, unsigned long int (32 bits) |
LONG | Signed long integer (32 bits) |
LPSTR | Long (far) pointer to character string |
NEAR | Obsolete, previously identified an address value within a 16KB memory block. |