tags:

views:

75

answers:

2

Say i am using RegQueryValueEx:

http://msdn.microsoft.com/en-us/library/ms724911(v=VS.85).aspx

I can get the pointer handle to lpType, but its just an integer, how do i actually get the data lpType is pointing to?

+1  A: 

As it clearly tells says on MSDN it is just an integer... its just an enum from 0 to 7 where 0 is REG_NONE ... 7 is REG_MULTI_SZ. Check out here for more detail Look under key types.

m0s
A: 

'lpType' does not point to the actual data, the actual data is returned in the 'lpData' parameter.

logicnp