To force the
changes to be written immediately to the Registry, flush the key using RegFlushKey:
Declare Function apiRegFlushKey _
Lib ???Advapi32??? _
Alias RegFlushKey( _
ByVal hKey As Long) As Long
RegFlushKey accepts the handle of an open key as an argument and returns zero if successful.
SetAppTitleReg() from the previous section uses RegFlushKey to commit changes made to
the title bar settings it has made.
RegQueryValueEx
The RegQueryValueEx function returns the value of a registry key opened with the
RegCreateKeyEx API call.
Declare Function apiRegQueryValueEx _
Lib ???Advapi32??? _
Alias ???RegQueryValueExA???( _
ByVal hKey As Long, _
ByVal lpszValueName As String, _
ByVal lpdwReserved As Long, _
lpdwType As Long, _
ByVal lpbData As String, _
lpcbSize As Long) As Long
hKey is the handle of an opened key. lpszValueName is a string containing the key of the value
you want to retrieve. lpdwReserved should be set to zero. lpdwType is a buffer containing one
of the symbolic constants listed earlier, which tells the function what kind of data it should expect
to receive.
Pages:
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847