.


:




:

































 

 

 

 





hKey . pHkResult HKEY, .

lpSubKey . , : Microsoft\WindowsNT\CurrentVersion. NULL hKey. ulOptions 0.

samDesired , . KEY_ALL_ACCESS, KEY_WRITE, KEY_QUERY_VALUE KEY_ENUMARATE_SUBKEYS.

ERROR_SUCCESS. . RegCloseKey, .

RegEnumKeyEx.

"-" : RegEnumValue RegQueryValueEx.[18] RegSetValueEx . , , .

RegEnumKeyEx , FindFirstFile FindNextFile . , , .

LONG RegEnumValue(HKEY hKey, DWORD dwIndex, LPTSTR lpValueName, LPDWORD lpcbValueName, LPDWORD lpReserved, LPDWORD lpType, LPBYTE lpData, LPDWORD lpcbData)

dwIndex 0 . , , . ERROR_SUCCESS, .

, RegCreateKeyEx. , ( 15).

LONG RegCreateKeyEx(HKEY hKey, LPCTSTR lpSubKey, DWORD Reserved, LPTSTR lpClass, DWORD dwOptions, REGSAM samDesired, LPSECURITY_ATTRIBUTES lpSecurityAttributes, PHKEY phkResult, LPDWORD lpdwDisposition)





:


: 2015-09-20; !; : 442 |


:

:

, ,
==> ...

1593 - | 1573 -


© 2015-2024 lektsii.org - -

: 0.006 .