Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What differentiation between GetMessageA and GetMessageW function?

Tags:

winapi

I am learning programming Window GUI. I don't know differentiation between 2 function GetMessageA and GetMessageW. I saw the GetMessage function have not any parameters involve to ANSI or Unicode.

like image 732
vuhai Avatar asked Aug 07 '26 22:08

vuhai


1 Answers

All older Win32 calls that involve strings are actually macros that expand to either a Unicode version or an ANSI version, based upon the "Character Set" property of the project.

GetMessage(...) will map to either GetMessageA(...) or GetMessageW(...) where the "A" version will handle messages that involve strings as ANSI formatted text and the "W" version will use UTF-16.

like image 145
jwezorek Avatar answered Aug 10 '26 16:08

jwezorek



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!