I have ran across an issue it appears is XP related. On my NT machine I can read the registry fine, however the same function returns a blank on an XP machine. 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 is XP but the same code reads the registry fine and fills this variable in NT. Anyone have any suggestions? Thanks!!
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 is XP but the same code reads the registry fine and fills this variable in NT. Anyone have any suggestions? Thanks!!