Am 23.04.2018 um 08:35 schrieb Kieran Duggan kieranduggan15@gmail.com:
Also what exactly is the suffix A/W for? I remember seeing it in the code a while ago and not understanding it.
The A / W is ASCII (char *) vs Unicode (WCHAR *). Ideally the implementation is in the W version and the A version converts strings from ASCII to Unicode with MultiByteToWideChar, calls the W version, and if necessary, converts result strings back to Ascii. See for example FindWindowExA in dlls/user32/win.c for a simple example.
The A->W conversion is not always trivial, e.g. care has to be taken with NULL pointers and string sizes.