Returns DWORD value at subkey position.
RegQueryDword(handle, subkey-string [, flags])
(i) handle handle to a registration database key.
(s) subkey-string a path from the key provided to the desired key, including the "data item name" in square brackets
at the end of the key string.
(i) flags [optional]
0 - (default) value returned in decimal format.
1 - value returned in hexadecimal format.
2 - value returned in signed integer format.
32 - use the 32-bit registry view.
64 - use the 64-bit registry view.
Note: The WIL bitwise OR (|) operator can be used to combine a single format flag with a single view flag to indicate both the format and the view.
(s) contents (value) of data item at key position desired.
Windows Vista/2008 and newer: This function may require an Administrator level account, if it attempts to access protected registry keys: HKEY_LOCAL_MACHINE or HKEY_CLASSES_ROOT.
value = RegQueryDword(@REGCURRENT, "Control Panel\Desktop[ScreenSaveUsePassword]",0) Message("ScreenSaveUsePassword", value)
RegApp, RegEntryType, RegQueryBin, RegQueryEx, RegQueryExpSz, RegQueryItem, RegQueryMulSz, RegQueryValue, and the section on Registration Database Operations