Computer Security: Windows Registry
Computer Security: Windows Registry
Windows Registry
• HKEY_USERS Defines settings for the default user, new users, and current
• users
• Some keys are actually virtual keys that provide a way to reference the
underlying registry information.
• KEY_CURRENT_USER HKEY_USERS\SID, where SID is the security identifier of the
user currently logged in.
Value Type
Root-Keys, Keys, and Sub-Keys
Eng. Mahmoud Al-Hoby 7
Programs that Run Automatically
• A Special Key in Registry is used, that contains the applications that
run automatically when Windows starts.
Source:
https://msdn.microsoft.com/en-us/library/aa390388(v=vs.85).aspx
Source:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms724878(v=vs.85).aspx
• Type REG_SZ
• Data Space-Delimited string of DLLs’ Paths
[DllImport("advapi32.dll")]
public static extern int RegSetValueEx
(IntPtr hKey, string lpValueName, long Reserved, long dwType, string lpData, long cbData);
[DllImport("advapi32.dll")]
public static extern long RegCloseKey
(IntPtr hKey);