Determining the Current Character Set 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.



Community Additions

© 2014 Microsoft