home / software / tips and tricks / How to access Windows Registry using c#

How to access Windows Registry using c#

Updated:  02/15/2007 12:02 PM
Author:  Shiju Mathews

Status:    Resolved.


Windows NT-based operating systems
Windows NT-based systems store the registry in a binary hive format which is the same format that can be exported, loaded and unloaded by the Registry Editor in these operating systems. The following Registry files are stored in %SystemRoot%\System32\Config\:


Sam – HKEY_LOCAL_MACHINE\SAM
Security – HKEY_LOCAL_MACHINE\SECURITY
Software – HKEY_LOCAL_MACHINE\SOFTWARE
System – HKEY_LOCAL_MACHINE\SYSTEM
Default – HKEY_USERS\.DEFAULT


Userdiff – Not associated with a hive. Used only when upgrading operating systems. The following file is stored in each user's profile folder

This registry can be accessed using c#

Tags: How to access Windows Registry using c#
Updated on: November 2024