You are reading help file online using chmlib.com
|
function RegQueryDWordValue(const RootKey: Integer; const SubKeyName, ValueName: String; var ResultDWord: Cardinal): Boolean;
Queries the specified REG_DWORD-type registry value, and returns the data in ResultDWord. Returns True if successful. When False is returned, ResultDWord is unmodified.
var HistoryBufferSize: Cardinal; begin if RegQueryDWordValue(HKEY_CURRENT_USER, 'Console', 'HistoryBufferSize', HistoryBufferSize) then begin // Successfully read the value MsgBox('Console history buffer size: ' + IntToStr(HistoryBufferSize), mbInformation, MB_OK); end; end;
You are reading help file online using chmlib.com
|