GetCPInfo

  BOOL GetCPInfo(CodePage, lpCPInfo)    
  UINT CodePage;    
  LPCPINFO lpCPInfo;    

The GetCPInfo function is used to get information about a code page.

Parameters

CodePage

Code page to use. If this is CP_ACP, then the ANSI code page is used. If this is CP_OEMCP, then the OEM code page is used.

lpCPInfo

pointer to a CPINFO structure.

Return Value

Success: TRUE

Failure: FALSE

This function sets GetLastError with the following values: ERROR_INVALID_PARAMETER.