What is the difference between RegQueryValueEx and RegQueryValue.?
why are we using RegQueryValueExW and RegQueryValueExA ?
explain the purpose kindly :P
RegQueryValue is outdated and has been superceded by RegQueryValueEx so should not be used
The difference between the W/A versions of APIs is that the W is for unicode/widechar and A is for ANSI. ANSI strings are simply an array of character bytes whereas widechar is slightly different with each character taking up 2 bytes.
ANSI support 256 different characters so it will take 8 bit to store single character but;
UNICODE support 65536 different character,so it will take 16 bit to store single character and it is more complex.
This differences should consider while you interact with unmanaged code(win32 api),export functions etc.
The major difference is that RegQueryValue can return only strings (normal/multi/expandable), and does not return type of returned data.
http://msdn.microsoft.com/en-us/library/cc500348.aspx
Thanks to all !! for your kind reply :bg