The OemToAnsi function is obsolete.
For compatibility with 16-bit versions of Windows, this function is implemented as a macro that calls the OemToChar function, which should be used for new Win32-based applications.
String Manipulation Overview, String Manipulation Functions