@Aconcagua, ah, no, bad wording on my part! I meant that in C,
char *
might mean a pointer to
anything. Some programmers "feel" like using
void*
is somehow too vague and using
char*
to point to an "contiguous lump of data" is somehow better. So really without further knowledge about what the DLLs author really meant (does the function "under the hood" treats the pointer as an address of a series of 16-bit values), guessing is only so much good, unfortunately. BTW, I appreciate your mentioning of non-UTF-8 legacy system encodings—this is definitely a possibility. —
kostix 19 secs ago