Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Value returned by RegQueryValueEx

Status
Not open for further replies.

pcwc66

IS-IT--Management
Dec 14, 2001
163
US
Hi,

I just want to know whether it is normal to have a value "Word.Document.8 u m e n t . 8" returned by the 5th parameter lpdata of RegQueryValueEx(HKEY_CLASSES_ROOT, ".doc", 0, 0x20019, @lpdata, @lpcbdata) or the value "Excel.Sheet.8 h e e t . 8" returned when calling RegQueryValueEx(HKEY_CLASSES_ROOT, ".xls", 0, 0x20019, @lpdata, @lpcbdata).

I wonder whether the value should be just ""Word.Document.8" or ""Excel.Sheet.8" without the extra characters.


Thank you.
 
Yes it should be "Word.Document.8" or ""Excel.Sheet.8" without the extra characters.

You might missed something, but as far as I know ".doc" or ".xls" is a "key" not a "value". So it has to open with RegOpenKey then you use the "return key" with RegQueryValueEx.

Look into the documentation carefully
Regards


-- AirCon --
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top