Board index » delphi » Registry - hexadecimal values
Evandro Sestrem
![]() Delphi Developer |
Registry - hexadecimal values2003-08-12 01:08:26 AM delphi187 Hi, I'm trying read the hexadecimal values in this key: HKEY_DYN_DATA\PerfStats\StatData\Dial-Up Adapter\TotalBytesXmit This key only exists in 98. Is this the right way? var xSize: Integer; xValue: Integer; begin ... xRegistry := TRegistry.Create; try xRegistry.RootKey := HKEY_DYN_DATA; if (xRegistry.OpenKey('PerfStats\StatData', False)) then begin xSize := xRegistry.GetDataSize('Dial-Up Adapter\TotalBytesXmit'); xRegistry.ReadBinaryData('Dial-Up Adapter\TotalBytesXmit', xValue, SizeOf(xValue)); end; ... In some 98 I get the right values and some not. Evandro Sestrem |