Windows 11 File APIs not working properly when set to OEM

Occasional Visitor

When file APIs are set to OEM using SetFileApisToOEM (AreFileApisANSI returns 0) they do not work properly.

 

For example using CreateDirectory() to create a folder that contains an umlaut (i.e. ä, ö or ü) in the OEM string, the umlaut is missing in the resulting folder.

 

When the oem path is converted into ANSI using OemToChar befor passing it to CreateDirectory the folder gets created correctly even when the file apis are set to OEM.

0 Replies