by shortrounddev2 · 3y ago · 0 comments
There is no need to do this; you can just call the A variant by name. Wide char and ascii functions are distinguished with W or A at the end, such as CreateFileA or CreateFileW. CreateFile is a macro.
Additionally I have my own Windows header file which undefines all of the macros so my function names do not get mangled with A and W suffixes.