Nov 05 2021
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.