1.USHORT
0到65535的无符号16位整数,System.UInt16
转换:
ushort x = 5, y = 12;
ushort z = x + y; // Error: conversion from int to ushort
ushort z = (ushort)(x + y); // OK: explicit conversion
SHORT -32,768到32,767的有符号16位整数,System.UInt16
http://msdn.microsoft.com/en-us/library/windows/desktop/aa383751(v=vs.85).aspx
2.PALETTEENTRY structure
The PALETTEENTRY structure specifies the color and usage of an entry in a logical palette. A logical palette is defined by a LOGPALETTE structure.
typedef struct tagPALETTEENTRY {
BYTE peRed;
BYTE peGreen;
BYTE peBlue;
BYTE peFlags;
} PALETTEENTRY;
http://msdn.microsoft.com/en-us/library/windows/desktop/dd162769(v=vs.85).aspx
3.LOGPALETTE structure
The LOGPALETTE structure defines a logical palette.
typedef struct tagLOGPALETTE {
WORD palVersion;
WORD palNumEntries;
PALETTEENTRY palPalEntry[1];
} LOGPALETTE;
http://msdn.microsoft.com/en-us/library/windows/desktop/dd145040(v=vs.85).aspx
4.PULONG
A pointer to a ULONG.
This type is declared in WinDef.h as follows:
typedef ULONG *PULONG;
ULONG
An unsigned LONG. The range is 0 through 4294967295 decimal.
This type is declared in WinDef.h as follows:
typedef unsigned long ULONG;
http://msdn.microsoft.com/en-us/library/windows/desktop/aa383751(v=vs.85).aspx