Chillakane
Programmer
I have a problem where the registry function, RegQueryValueEx, will not return a success on windows 95 and 98 but executes fine on 2000 and NT4.
The error code that is returned is 0 (i.e no error with formatmessage fcn) on 95 and 98, but the strange thing is that the condition I set "if (RegQueryValueEx(etc...) != ERROR_SUCCESS)" is being stepped into. So clearly there is an error!
Here's the type of thing I am doing:
if (RegQueryValueEx(hKey, "", NULL, NULL, (unsigned char *)cValue, (unsigned long *)&lSize)!=ERROR_SUCCESS)...
I want the 'cValue' (path to a particular executable) which works fine in NT4 and 2000. RegOpenKeyEx was called with the KEY_QUERY_ALL mask as required. We have this working fine in VB 6.0 but no luck here.
Help!
The error code that is returned is 0 (i.e no error with formatmessage fcn) on 95 and 98, but the strange thing is that the condition I set "if (RegQueryValueEx(etc...) != ERROR_SUCCESS)" is being stepped into. So clearly there is an error!
Here's the type of thing I am doing:
if (RegQueryValueEx(hKey, "", NULL, NULL, (unsigned char *)cValue, (unsigned long *)&lSize)!=ERROR_SUCCESS)...
I want the 'cValue' (path to a particular executable) which works fine in NT4 and 2000. RegOpenKeyEx was called with the KEY_QUERY_ALL mask as required. We have this working fine in VB 6.0 but no luck here.
Help!