News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Difference between RegQueryValueEx and RegQueryValue

Started by stanley, October 23, 2009, 12:11:20 PM

Previous topic - Next topic

stanley

What is the difference between RegQueryValueEx  and RegQueryValue.?

why are we using RegQueryValueExW and RegQueryValueExA ?

explain the purpose kindly :P

Slugsnack

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.

silentenigma

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.
My heart is ripped out,
Chained on my boots
Look deep inside mey soul with pain,
Witness the fall of a hero

akane

The major difference is that RegQueryValue can return only strings (normal/multi/expandable), and does not return type of returned data.


stanley