The OemToAnsiBuff function is obsolete. Under 32-bit Windows, it is implemented as a macro that calls the OemToCharBuff function.