PDA

View Full Version : RegDBQueryKey returns error



drorpaz
06-07-2004, 07:19 AM
Hi.
I got the following code:

#define GSSL_REGISTRY_ADAPTERS_PATH "SYSTEM\\CurrentControlSet\\Control\\Network\\{4D36E972-E325-11CE-BFC1-08002BE10318}" ;


//Keeping list of existing network adapters
AdaptersListBefore = ListCreate(STRINGLIST);

if (AdaptersListBefore == LIST_NULL) then
MessageBox ("Unable to create necessary lists.", SEVERE);
abort;
endif;

nResult = RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);

szKey = GSSL_REGISTRY_ADAPTERS_PATH ;
// Get the list of subkeys.
nResult = RegDBQueryKey(szKey, REGDB_KEYS, AdaptersListBefore );

=======
Here nResult returns -2147024662 (which is 0x800700EA)
FormatMessage returns "More Data is available"

It happens only on one machine out of 5.
The AdaptersListBefore is empty.
All registry entries seems to be fine.

Any idea?
Thanks.

JesseBearden
12-07-2004, 05:31 PM
Interesting, I'm getting the same error. It happens on a Japanese install, but I can't for the life of me see what the issue could be. Any help here would be appreciated.

Jesse

JesseBearden
12-07-2004, 06:16 PM
Upon further investigation, I found that it seems to die on a specific japanese registry entry, but if I change the name of the key, then it works. Maybe I'll see if I can use the win32 functions in my install to get it working.

Jesse