This is what i tried:
typedef struct {
DWORD lStructSize;
HWND hwndOwner;
HWND hInstance;
COLORREF rgbResult;
COLORREF* lpCustColors;
DWORD Flags;
LPARAM lCustData;
LPCCHOOKPROC lpfnHook;
LPCTSTR lpTemplateName;
} CHOOSECOLOR, *LPCHOOSECOLOR;
CHOOSECOLOR CHOOSECOLORDLG;
CHOOSECOLORDLG.lStructSize = sizeof(CHOOSECOLOR);
CHOOSECOLORDLG.hwndOwner = NULL;
CHOOSECOLORDLG.hInstance = NULL;
CHOOSECOLORDLG.rgbResult = NULL;
CHOOSECOLORDLG.lpCustColors = NULL;
CHOOSECOLORDLG.Flags = CC_ANYCOLOR;
CHOOSECOLORDLG.lpfnHook = NULL;
CHOOSECOLORDLG.lpTemplateName = NULL;
ChooseColor(CHOOSECOLORDLG);
But i get an error whilst compiling:
Error 1 error C2664: 'ChooseColorA' : cannot convert parameter 1 from 'CHOOSECOLOR' to 'LPCHOOSECOLORA'