I am writing a UNICODE application and need to call WideCharToMultiByte as I need to create a non-UNICODE text file for backwards compatability. Only thing is, i need to pass the code page to the function. How do I know generically whether to pass CP_ACP or CP_OEMCP. i.e. how can I tell whether the installed code page is a standard ANSI one or an OEM-installed one?
I know of the functions GetACP and GetOEMCP but which one should I use?