HPALETTE CreatePalette(lpLogPalette)
This function creates a logical color palette.
| Parameter | Type/Description | |
| lpLogPalette | LPLOGPALETTE Points to a LOGPALETTE data structure that contains information about the colors in the logical palette. | 
The return value identifies a logical palette if the function was successful. Otherwise, it is NULL.