Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "registry" in [All]

shlwapi

.
Summary
Searches for and retrieves a file association-related string from the registry. A wrapper for the [IQueryAssociations] interface.
.

The Windows Shell (Explorer) stores your preference in the following registry key:

.

The problem of leaving behind the registry keys: Since the registry key gets stored in HKEY_CURRENT_USER, every different user on a system will have their own preference saved. If you uninstall the program for one user, you'll leave behind the registry keys for the other users. For example, suppose users X and Y have checked the "Do not show me this dialog again" checkbox, and therefore each have the registry key in their HKEY_CURRENT_USER area. Now user X uninstalls the program. The uninstaller must leave behind the registry key for user Y because that user is not logged in.

.

        "MyApplicationName.exe" // This last argument is the value of the registry key

dwmapi

.

A more reliable approach to get the colorization parameters would be to implement your own method that tries to lookup each parameter directly from the Windows registry, with proper exception handling in the case a value cannot be obtained. The colorization parameters can be found under the key "HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM". Please note that these are also undocumented and as such can also be changed or removed in the future.

.

A more reliable approach to set the colorization parameters would be to implement your own method that tries to set each parameter directly in the Windows registry and sends the WM_DWMCOLORIZATIONCOLORCHANGED message to notify all top-level windows about the change, with proper exception handling in the case a value cannot be set. The colorization parameters can be found under the key "HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM". Please note that these are also undocumented and as such can also be changed or removed in the future.

Interfaces

.

        // the registry path, including the value name, where the format

.
Summary
The ICatRegister interface provides methods for registering and unregistering component category information in the Registry. This includes both the human-readable names of categories and the categories implemented/required by a given component or class.
.

    /// information in the registry. This includes both the human-readable

.

    Dim rkClass As RegistryKey = Registry.ClassesRoot.CreateSubKey("CLSID\" & guid)

.

    Dim rkCat As RegistryKey = rkClass.CreateSubKey("Implemented Categories")

.

        Registry.LocalMachine.CreateSubKey("SOFTWARE\Microsoft\Internet Explorer\Toolbar").SetValue(guid, name)

.

        Registry.LocalMachine.CreateSubKey("SOFTWARE\Microsoft\Internet Explorer\Toolbar").DeleteValue(guid, False)

.

    Registry.ClassesRoot.CreateSubKey("CLSID").DeleteSubKeyTree(guid)

.

    Dim rkClass As RegistryKey = Registry.ClassesRoot.CreateSubKey("CLSID\" & guid)

.

    Dim rkCat As RegistryKey = rkClass.CreateSubKey("Implemented Categories")

.

        Registry.LocalMachine.CreateSubKey("SOFTWARE\Microsoft\Internet Explorer\Toolbar").SetValue(guid, name)

.

        Registry.LocalMachine.CreateSubKey("SOFTWARE\Microsoft\Internet Explorer\Toolbar").DeleteValue(guid, False)

.

    Registry.ClassesRoot.CreateSubKey("CLSID").DeleteSubKeyTree(guid)

.
Summary
The ICatRegister interface provides methods for registering and unregistering component category information in the Registry. This includes both the human-readable names of categories and the categories implemented/required by a given component or class.
.

        //IOLECommandTarget is registered in the registry

oleaut32

.
Summary
The RegisterTypeLib function adds information about a type library to the registry.
.
Summary
The UnRegisterTypeLib function removes type library information from the system registry. Use this API to allow applications to properly uninstall themselves. In-process objects typically call this API from "DllUnregisterServer".

kernel32

.
Note
This function is provided only for compatibility with 16-bit Windows-based applications. Applications should store initialization information in the registry.
.
Note
This function is provided only for compatibility with 16-bit Windows-based applications. Applications should store initialization information in the registry.

gdi32

.

        Console.WriteLine("\nAny changes will not persist a reboot - to do so, remove the font entry from the registry.");

rpcrt4

.

Microsoft changed the UuidCreate function so it no longer uses the machine's MAC address as part of the UUID. Since CoCreateGuid calls UuidCreate to get its GUID, its output also changed. If you still like the GUIDs to be generated in sequential order (helpful for keeping a related group of GUIDs together in the system registry), you can use the UuidCreateSequential function.

.

Microsoft changed the UuidCreate function so it no longer uses the machine's MAC address as part of the UUID. Since CoCreateGuid calls UuidCreate to get its GUID, its output also changed. If you still like the GUIDs to be generated in sequential order (helpful for keeping a related group of GUIDs together in the system registry), you can use the UuidCreateSequential function.

cfgmgr32

.

     NoRegistryHandle = 0x0000001C,

.

     RegistryError = 0x0000001D,

.

     NoSuchRegistryKey = 0x0000002E,

.
Summary
Opens a registry key for device-specific configuration information.

Enums

.

    SHACF_AUTOSUGGEST_FORCE_ON      = 0x10000000,  // Ignore the registry default and force the feature on.

.

    SHACF_AUTOSUGGEST_FORCE_OFF     = 0x20000000,  // Ignore the registry default and force the feature off.

.

    SHACF_AUTOAPPEND_FORCE_ON       = 0x40000000,  // Ignore the registry default and force the feature on. (Also know as AutoComplete)

.

    SHACF_AUTOAPPEND_FORCE_OFF      = 0x80000000,  // Ignore the registry default and force the feature off. (Also know as AutoComplete)

.

    SHACF_AUTOSUGGEST_FORCE_ON = &H10000000       ' Ignore the registry default and force the feature on.

.

    SHACF_AUTOSUGGEST_FORCE_OFF = &H20000000      ' Ignore the registry default and force the feature off.

.

    SHACF_AUTOAPPEND_FORCE_ON = &H40000000    ' Ignore the registry default and force the feature on. (Also know as AutoComplete)

.

    SHACF_AUTOAPPEND_FORCE_OFF = &H80000000       ' Ignore the registry default and force the feature off. (Also know as AutoComplete)

21: CDS
.

    UpdateRegistry = 1,

.

    UpdateRegistry = 1

.

    ///Error accessing the OLE registry.

.

    [Description("Error accessing the OLE registry.")]

.

    public const int TYPE_E_REGISTRYACCESS = unchecked((int)0x8002801C);

.

    ///Could not read key from registry

.

    [Description("Could not read key from registry")]

.

    ///Could not write key to registry

.

    [Description("Could not write key to registry")]

.

    ///Could not find the key in the registry

.

    [Description("Could not find the key in the registry")]

.

    ///Invalid value for registry

.

    [Description("Invalid value for registry")]

.

    ///Use the registry database to provide the requested information

.

    [Description("Use the registry database to provide the requested information")]

.

    ///The requested device registry key does not exist.

.

    [Description("The requested device registry key does not exist.")]

.

    ///The class installer registry entry is invalid.

.

    [Description("The class installer registry entry is invalid.")]

.

    ///The property page provider registry entry is invalid.

.

    [Description("The property page provider registry entry is invalid.")]

.

    ///Registry startup information is missing or invalid.

.

    [Description("Registry startup information is missing or invalid.")]

.

    ///An ATR obtained from the registry is not a valid ATR string.

.

    [Description("An ATR obtained from the registry is not a valid ATR string.")]

.

    public const int COMADMIN_E_NOREGISTRYCLSID = unchecked((int)0x80110411);

.

    public const int COMADMIN_E_BADREGISTRYPROGID = unchecked((int)0x80110412);

.

    public const int COMADMIN_E_BADREGISTRYLIBID = unchecked((int)0x8011041E);

.

    ///Object was not found in registry

.

    [Description("Object was not found in registry")]

.

    public const int COMADMIN_E_NOTINREGISTRY = unchecked((int)0x8011043E);

.

    ///The COM+ registry database has not been initialized

.

    [Description("The COM+ registry database has not been initialized")]

.

    ///The COM+ registry database is not open

.

    [Description("The COM+ registry database is not open")]

.

    ///The COM+ registry database detected a system error

.

    [Description("The COM+ registry database detected a system error")]

.

    ///The COM+ registry database is already running

.

    [Description("The COM+ registry database is already running")]

.

    ///This version of the COM+ registry database cannot be migrated

.

    [Description("This version of the COM+ registry database cannot be migrated")]

.

    ///The schema version to be migrated could not be found in the COM+ registry database

.

    [Description("The schema version to be migrated could not be found in the COM+ registry database")]

.

    ///The specified user cannot write to the system registry

.

    [Description("The specified user cannot write to the system registry")]

.

    public const int COMADMIN_E_REGISTRY_ACCESSDENIED = unchecked((int)0x80110823);

.

    '''Error accessing the OLE registry.

.

    <Description("Error accessing the OLE registry.")> _

.

    Public Const TYPE_E_REGISTRYACCESS As Integer = CInt(&H8002801cUI)

.

    '''Could not read key from registry

.

    <Description("Could not read key from registry")> _

.

    '''Could not write key to registry

.

    <Description("Could not write key to registry")> _

.

    '''Could not find the key in the registry

.

    <Description("Could not find the key in the registry")> _

.

    '''Invalid value for registry

.

    <Description("Invalid value for registry")> _

.

    '''Use the registry database to provide the requested information

.

    <Description("Use the registry database to provide the requested information")> _

.

    '''The requested device registry key does not exist.

.

    <Description("The requested device registry key does not exist.")> _

.

    '''The class installer registry entry is invalid.

.

    <Description("The class installer registry entry is invalid.")> _

.

    '''The property page provider registry entry is invalid.

.

    <Description("The property page provider registry entry is invalid.")> _

.

    '''Registry startup information is missing or invalid.

.

    <Description("Registry startup information is missing or invalid.")> _

.

    '''An ATR obtained from the registry is not a valid ATR string.

.

    <Description("An ATR obtained from the registry is not a valid ATR string.")> _

.

    Public Const COMADMIN_E_NOREGISTRYCLSID As Integer = CInt(&H80110411UI)

.

    Public Const COMADMIN_E_BADREGISTRYPROGID As Integer = CInt(&H80110412UI)

.

    Public Const COMADMIN_E_BADREGISTRYLIBID As Integer = CInt(&H8011041eUI)

.

    '''Object was not found in registry

.

    <Description("Object was not found in registry")> _

.

    Public Const COMADMIN_E_NOTINREGISTRY As Integer = CInt(&H8011043eUI)

.

    '''The COM+ registry database has not been initialized

.

    <Description("The COM+ registry database has not been initialized")> _

.

    '''The COM+ registry database is not open

.

    <Description("The COM+ registry database is not open")> _

.

    '''The COM+ registry database detected a system error

.

    <Description("The COM+ registry database detected a system error")> _

.

    '''The COM+ registry database is already running

.

    <Description("The COM+ registry database is already running")> _

.

    '''This version of the COM+ registry database cannot be migrated

.

    <Description("This version of the COM+ registry database cannot be migrated")> _

.

    '''The schema version to be migrated could not be found in the COM+ registry database

.

    <Description("The schema version to be migrated could not be found in the COM+ registry database")> _

.

    '''The specified user cannot write to the system registry

.

    <Description("The specified user cannot write to the system registry")> _

.

    Public Const COMADMIN_E_REGISTRY_ACCESSDENIED As Integer = CInt(&H80110823UI)

.

    RegistryRecovered = 0x40000009,

.

    SE_REGISTRY_KEY,

.

    SE_REGISTRY_WOW64_32KEY

.

    SE_REGISTRY_KEY

.

    SE_REGISTRY_WOW64_32KEY

25: SPDRP
.
Summary
Device registry property codes
.

/// Device registry property codes

.

    /// <summary>verify even if the settings in the registry disable it</summary>

.

    /// <summary>set to false if verify succeeded due to registry settings</summary>

.

        /// or registry settings may not be present.

odbc32

.

On XP, Win2k and Win2k3, the system DSN's are stored in the registry in

.

        Dim key As Microsoft.Win32.RegistryKey

.

        key = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("software\odbc\odbc.ini\odbc data sources")

Constants

30: NERR_
.

        /// <summary> 2611 - Service failed to start due to bad startup information in the registry. </summary>

.

        public const int RplBadRegistry = 2611;

.

    ///<summary>The perceived type was determined through an association in the registry.</summary>

.

    '''<summary>The perceived type was determined through an association in the registry.</summary>

.

    // These PKEYs correspond to registry values under the device class GUID key

.

        /// The configuration registry database is corrupt.

.

        /// The configuration registry key is invalid.

.

        /// The configuration registry key could not be opened.

.

        /// The configuration registry key could not be read.

.

        /// The configuration registry key could not be written.

.

        /// One of the files in the registry database had to be recovered by use of a log or alternate copy. The recovery was successful.

.

        public const int ERROR_REGISTRY_RECOVERED = 1014;

.

        /// The registry is corrupted. The structure of one of the files containing registry data is corrupted, or the system's memory image of the file is corrupted, or the file could not be recovered because the alternate copy or log was absent or corrupted.

.

        public const int ERROR_REGISTRY_CORRUPT = 1015;

.

        /// An I/O operation initiated by the registry failed unrecoverably. The registry could not read in, or write out, or flush, one of the files that contain the system's image of the registry.

.

        public const int ERROR_REGISTRY_IO_FAILED = 1016;

.

        /// The system has attempted to load or restore a file into the registry, but the specified file is not in a registry file format.

.

        public const int ERROR_NOT_REGISTRY_FILE = 1017;

.

        /// Illegal operation attempted on a registry key that has been marked for deletion.

.

        /// System could not allocate the required space in a registry log.

.

        /// Cannot create a symbolic link in a registry key that already has subkeys or values.

.

        /// The transaction state of a registry subtree is incompatible with the requested operation.

.

        /// A registry key for event logging could not be created for this session.

.

        /// The directory configuration parameter is missing from the registry.

.

        /// Use the registry database to provide the requested information

.

        /// Could not read key from registry

.

        /// Could not read key from registry

.

        /// Could not write key to registry

.

        /// Could not find the key in the registry

.

        /// Invalid value for registry

.

        /// Use the registry database to provide the requested information

.

        /// Error accessing the OLE registry.

.

        public const int TYPE_E_REGISTRYACCESS = (int)(0x8002801C - 0x100000000);

.

        /// The requested device registry key does not exist.

.

        /// The class installer registry entry is invalid.

.

        /// The property page provider registry entry is invalid.

.

        /// Registry startup information is missing or invalid.

.

        /// An ATR obtained from the registry is not a valid ATR string.

.

        public const int COMADMIN_E_NOREGISTRYCLSID = (int)(0x80110411 - 0x100000000);

.

        public const int COMADMIN_E_BADREGISTRYPROGID = (int)(0x80110412 - 0x100000000);

.

        public const int COMADMIN_E_BADREGISTRYLIBID = (int)(0x8011041E - 0x100000000);

.

        /// Object was not found in registry

.

        public const int COMADMIN_E_NOTINREGISTRY = (int)(0x8011043E - 0x100000000);

.

        /// The COM+ registry database has not been initialized

.

        /// The COM+ registry database is not open

.

        /// The COM+ registry database detected a system error

.

        /// The COM+ registry database is already running

.

        /// This version of the COM+ registry database cannot be migrated

.

        /// The schema version to be migrated could not be found in the COM+ registry database

.

        /// The specified user cannot write to the system registry

.

        public const int COMADMIN_E_REGISTRY_ACCESSDENIED = (int)(0x80110823 - 0x100000000);

shell32

.

lpVerb member can be used for a varity of actions like "properties", "find", "openas", "print"..etc depending on the file type you're dealing with.Actions available for a specific file type are stored in registry, setting lpVerb to null results in the default action of that file type to be executed.

userenv

.

Upon successful return, the hProfile member of PROFILEINFO is a registry key handle opened to the root of the user's hive. It has been opened with full access (KEY_ALL_ACCESS). If a service that is impersonating a user needs to read or write to the user's registry file, use this handle instead of HKEY_CURRENT_USER. Do not close the hProfile handle. Instead, pass it to the UnloadUserProfile function. This function closes the handle. You should ensure that all handles to keys in the user's registry hive are closed. If you do not close all open registry handles, the user's profile fails to unload. For more information, see Registry Key Security and Access Rights and Registry Hives.

.

Note that it is your responsibility to load the user's registry hive into the HKEY_USERS registry key with the LoadUserProfile function before calling CreateProcessAsUser. This is because CreateProcessAsUser does not load the specified user's profile into HKEY_USERS. This means that access to information in the HKEY_CURRENT_USER registry key may not produce results consistent with a normal interactive logon.

user32

.

        CDS_UPDATEREGISTRY = 0x00000001,

.

        CDS_UPDATEREGISTRY = &H1

.

ChangeDisplaySettingsEx(d.DeviceName, ref dm, IntPtr.Zero, CDS_UPDATEREGISTRY, IntPtr.Zero);

.

        CDS_UPDATEREGISTRY = 0x00000001,

.

    CDS_UPDATEREGISTRY = &H1

.

                RegistryKey root;

.

                RegistryKey rk;

.

                root = Registry.LocalMachine;

.

                root = Registry.ClassesRoot;

.

                RegistryKey root;

.

                RegistryKey rk;

.

                root = Registry.LocalMachine;

.

                root = Registry.ClassesRoot;

.

This function changes the color for the current session only. To persist the change, you must update the registry keys at HKEY_CURRENT_USER\Control Panel\Colors

.

//save value in registry so that it will persist

.

Microsoft.Win32.RegistryKey key = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("Control Panel\\Colors", true);

crypt32

.

                 // registry.

.

You can store the encryption or master keys used by CryptProtectData in a file in the Windows folder or in the system registry so that certain persistent registry implementations will retain the encryption keys after losing and regaining power. See Master Key Storage for more information.

opengl32

43: OpenGL
.

try here -->/oficial OpenGL XML API Registry/ https://cvs.khronos.org/svn/repos/ogl/trunk/doc/registry/public/api/gl.xml

advapi32

.
Summary
If you enable autologon, it is more convenient to use Windows; however this feature may pose a security risk. If you set a computer for autologon, anyone who can physically obtain access to the computer can gain access to all of the computer contents, including any network or networks it is connected to. In addition, when autologon is enabled, the password is stored in the registry in plaintext. The specific registry key that stores this value is remotely readable by the Authenticated Users group. This setting is only recommended for cases where the computer is physically secured, and steps have been taken to ensure that untrusted users cannot remotely access the registry.
.

For Registry Keys

.

System.Security.AccessControl.RegistrySecurity

.

Registry keys

.

        SE_REGISTRY_KEY,

.

        SE_REGISTRY_WOW64_32KEY

.

But LsaStorePrivatData is still usefull for storing DefaultPassword in LSA and avoid to have the password in cleartext in registry.

.
Summary
Releases a handle to the specified registry key
.

Microsoft.Win32.RegistryKey.Close() Method.

.

(Special Note: The .NET Framework (3.0 and earlier at least) cannot read registry values of special types (for example: REG_RESOURCE_LIST and REG_FULL_RESOURCE_DESCRIPTOR). I am not sure if they will ever be available under .NET, to see examples of these types of values at work, visit your registry under (HKLM\HARDWARE\DESCRIPTION\System) and (HKLM\HARDWARE\RESOURCEMAP\Hardware Abstraction Layer\ACPI x86 platform).

.
Summary
Connect to a remote PC's registry
.

  static extern int RegConnectRegistry(string lpmachineName, int hKey, ref int phKResult);

.

Declare Auto Function RegConnectRegistry Lib "Advapi32" ( _

.

Windows.Win32.RegistryKey.OpenRemoteBaseKey

.

LONG RegConnectRegistry(

.

Public Shared Function OpenRemoteBaseKey(ByVal Hive As RegistryHive, ByVal RemotePC As String) As RegistryKey

.

   ret = RegConnectRegistry("\\" & RemotePC, New IntPtr(Hive), hRemoteKey)

.

   Dim ans As New RegistryKey

.

public RemoteRegistryReader(string computerName)

.

    iReturn = RegConnectRegistry(computerName, HKEY, ref iResult);

.
Documentation
[RegConnectRegistry] on MSDN
.
Summary
Copies the specified registry key, along with its values and subkeys, to the specified destination key.
. .

[Microsoft.Win32.RegistryKey.CreateSubKey]

.
Summary
Create or open a registry key
.

    NOT EXECUTABLE!!! PLEASE USE "Microsoft.Win32.Registry" and "Microsoft.Win32.RegistryKey"

.

Microsoft.Win32.RegistryKey.CreateSubKey

.
Summary
The RegDeleteKeyEx function deletes a subkey from the specified platform-specific view of the registry. Use only on 64-bit Operating Systems.
.

Microsoft.Win32.RegistryKey.DeleteSubKey() (the non-WOW64 version)

.
KEY_WOW64_32KEY 0x0200 Delete the key from the 32-bit registry view.
.
KEY_WOW64_64KEY 0x0100 Delete the key from the 64-bit registry view.
.
Summary
The RegDeleteKeyEx function deletes a subkey from the specified platform-specific view of the registry. Use only on 64-bit Operating Systems.
.

Microsoft.Win32.RegistryKey.DeleteSubKey() (the non-WOW64 version)

.
KEY_WOW64_32KEY 0x0200 Delete the key from the 32-bit registry view.
.
KEY_WOW64_64KEY 0x0100 Delete the key from the 64-bit registry view.
.

RegistryKey.DeleteSubKey Method

.

hiveKey = Registry.LocalMachine.OpenSubKey(subKey);

.

Type type = typeof(RegistryKey);

.
Summary
Returns the list of sub key names from a given registry key. Analogous to getting a list of subdirectories
.

Microsoft.Win32.RegistryKey.GetSubKeyNames()

.

     Throw New ApplicationException("Cannot access a closed registry key")

.
Summary
The RegEnumValue function enumerates the values for the specified open registry key. The function copies one indexed value name and data block for the key each time it is called.
.

RegistryKey.GetValue

.

     Throw New ApplicationException("Cannot access a closed registry key")

.
Summary
Retrieves a copy of the security descriptor protecting the specified open registry key.
.
Summary
Retrieves the type and data for the specified registry value
.

        /* Retrieves the type and data for the specified registry value. */

.

        SafeRegistryHandle hkey,

.

        /* Retrieves the type and data for the specified registry value. */

.

Microsoft.Win32.Registry.GetValue()

Cut off search results after 60. Please refine your search.


 
Access PInvoke.net directly from VS: