Platform SDK: Files and I/O

File Code Page

The AreFileApisANSI function determines whether the file I/O functions are using the ANSI or OEM character set code page. The SetFileApisToANSI function causes the functions to use the ANSI code page. The SetFileApisToOEM function causes the functions to use the OEM code page.

By default, file I/O functions use ANSI file names. Functions exported by KERNEL32.DLL that accept or return file names are affected by the file code page setting.

Both SetFileApisToANSI and SetFileApisToOEM set the code page per process, rather than per thread or per computer.