PDA

View Full Version : Registry and Dword Values


andason
05-05-2007, 11:42 PM
How do you retrieve information from the registry if the value is a dword? I understand how to do string values, but no idea how to retrieve dwords.

A_C
05-07-2007, 08:29 AM
Extracted from Slide v1.03...

//get signal strength
new(hKey1$, tint);
if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, "system\\state\\phone", 0, KEY_ALL_ACCESS, &hKey1$) != 0)
return (true);
end;
new(typ1$, tint);
new(sz1$, tint);
new(s1$, tint);
typ1$ = REG_DWORD;
sz1$ = 512;
RegQueryValueEx(hKey1$, "Signal Strength Raw", 0, &typ1$, &s1$, &sz1$);
signalstrength$ = s1$;

andason
05-07-2007, 11:08 PM
Thanks.. I thought I looked closer.. I was thinking they were all string values.

andason
05-29-2007, 03:50 AM
hmm..

Ok.. I'm able to get dword values, but how do I go about converting them to a string or other usable digit? right now I get a bunch of funky squares when tryig to display dword values.