How to create a file with the UNICODE path on Windows with C ++


I am wondering which Win32 API call is creating the files with UNICODE path. Just to make sure, I am not talking about the content here only the file path. I would appreciate if somebody would hit me with an MSDN url, my google fu failed this time.

Thanks a million in advance.

See CreateFile msdn link:, if you pass a unicode string to the lpFileName parameter then the unicode version of CreateFile will be used.

Also you need to open the file in binary mode see this discussion on msdn forum: which points to this msdn article: