14 Mart 2018 Çarşamba

RegOpenKeyEx metodu

Giriş
İmzası şöyle. options ve samdesired parametreleri DWORD ve REGSAM tipinde görünüyor ancak int gibi düşünmek daha kolay
RegOpenKeyEx(HKEY hKey,
             LPCTSTR lpSubKey,
             int ulOptions,
             int samDesired,
             PHKEY phkResult)
HKEY_CLASSES_ROOT
Açıklaması şöyle
HKEY_CLASSES_ROOT is a virtual tree that's actually a merged view of both the per-user HKCU\Software\Classes and HKLM\Software\Classes trees. (It's a leftover from Windows 9x, which didn't have the separation.)

Writes done to HKCR will go to either the personal or system registry depending on your privileges, and depending on whether the key being updated was originally loaded from HKCU or HKLM.
HKEY_LOCAL_MACHINE 
Açıklama yaz

HKEY_CURRENT_USER 
Açıklaması şöyle
HKEY_CURRENT_USER is a virtual mapping of one HKEY_USERS sub-key, roughly speaking the key of the user that started the process. Hence, different processes might have different HKEY_CURRENT_USER mappings.

Hiç yorum yok:

Yorum Gönder