Click here to Skip to main content
15,893,266 members
Articles / Programming Languages / C#

Howto: (Almost) Everything in WMI via C# - Part 1: Registry

Rate me:
Please Sign up or sign in to vote.
3.71/5 (14 votes)
19 Oct 2007CPOL2 min read 106.1K   2.9K   75  
A class library that wraps WMI Win32 Registry.
using System;
using System.Collections.Generic;
using System.Text;

namespace baileySoft.Wmi.Registry
{
    public enum baseKey : uint
    {
        HKEY_CLASSES_ROOT = 0x80000000,
        HKEY_CURRENT_USER = 0x80000001,
        HKEY_LOCAL_MACHINE = 0x80000002,
        HKEY_USERS = 0x80000003,
        HKEY_CURRENT_CONFIG = 0x80000005
    }
    public enum valueType
    {
        BINARY,
        DWORD,
        EXPANDED_STRING,
        MULTI_STRING,
        STRING
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
United States United States
I'm a professional .NET software developer and proud military veteran. I've been in the software business for 20+ years now and if there's one lesson I have learned over the years, its that in this industry you have to be prepared to be humbled from time to time and never stop learning!

Comments and Discussions