C # registry operation class (Full Version)

Source: Internet
Author: User

Below is a registry operation class written in C #. You are welcome to make a picture!

1. Static domain of the registry key

 1 /// <summary>
2 // static domain of the registry key
3 ///
4 /// mainly includes:
5 // 1. Registry. ClassesRoot corresponds to the HKEY_CLASSES_ROOT primary key
6 // 2. Registry. CurrentUser corresponds to the HKEY_CURRENT_USER primary key
7 // 3. Registry. LocalMachine corresponds to the HKEY_LOCAL_MACHINE primary key
8 // 4. Registry. User corresponds to the HKEY_USER primary key
9 // 5. Registry. CurrentConfig corresponds to the primary key of HEKY_CURRENT_CONFIG
10 // 6. Registry. DynDa corresponds to the HKEY_DYN_DATA primary key
11 // 7. Registry. PerformanceData corresponds to the HKEY_PERFORMANCE_DATA primary key
12 ///
13 // version: 1.0
14 /// </summary>
15 public enum RegDomain
16 {
17 /// <summary>
18 // corresponds to the HKEY_CLASSES_ROOT primary key
19 /// </summary>
20 ClassesRoot = 0,
21 /// <summary>
22 // corresponding to the HKEY_CURRENT_USER primary key
23 /// </summary>
24 CurrentUser = 1,
25 /// <summary>
26 // corresponding to the HKEY_LOCAL_MACHINE primary key
27 /// </summary>
28 LocalMachine = 2,
29 /// <summary>
30 /// corresponds to the HKEY_USER primary key
31 /// </summary>
32 User = 3,
33 // <summary>
34 // corresponds to the primary key of HEKY_CURRENT_CONFIG
35 /// </summary>
36 CurrentCo

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.