carlo.bramix wrote:
I can understand and I agree to that, afterall it can be made working with unicows layer, if someone wants (and infact, I did it).
For what reason shall someone do that? Unicows only makes sense on Win9x and the Task-Manager doesn't work under these operating systems as it uses NT-only API's.
Athough you should also admit that two WideCharToMultiByte() calls are not exactly something we can call "drammatic" code
As I also said, WideCharToMultiByte() can cause data corruption if a Unicode character isn't supported by the currently selected ANSI codepage. MultiByteToWideChar() is no problem, but the other direction can be problematic.
After all, we're coding for Windows Server 2003-compatibility here. We don't have to care about compatibility with Win9x (ANSI-only) or previous NT versions.
Regards,
Colin