Discussion Locked

Is RegQueryValueExString XP compliant?

0 helpful
0 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am working on a project where my code works fine on windows NT but does not return a value from the registry when used on Win XP. The specifc part that is not returning a value on XP but is on NT is the RegQueryValueEXString function:

sValue = String(cch, 0)
lrc = RegQueryValueExString(lhKey, szValueName, 0&, lType, _ sValue, cch)

If lrc = ERROR_NONE Then
vValue = Left$(sValue, cch - 1)
Else vValue = Empty
End If

The vValue parameter is blank now on XP but the same code reads the registry fine and fills this variable in NT. Anyone have any suggestions?

0 replies

No replies were posted before this discussion closed.

This discussion is closed to new replies.