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]

opengl32

.

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

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.

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.

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

gdi32

.

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

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.

wininet

.

const int INTERNET_OPEN_TYPE_PRECONFIG = 0; // use registry configuration

.

Const INTERNET_OPEN_TYPE_PRECONFIG = 0 ' // use registry configuration

winmm

.
Summary
Plays a PCM sound file from a filename, resource name or registry alias
.

    /// <summary>The pszSound parameter is an application-specific alias in the registry. You can combine this flag with the SND_ALIAS or SND_ALIAS_ID flag to specify an application-defined sound alias.</summary>

.

    /// <summary>name is a registry alias</summary>

.

    ''' the registry. You can combine this flag with the SND_ALIAS

.

    ''' registry or the WIN.INI file. Do not use with either

Constants

12: 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);

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")

urlmon

.

private const int SET_FEATURE_IN_REGISTRY = 0x00000004;

Structures

.

     /// Log on, then load the user's profile in the HKEY_USERS registry key. The function

.

     /// HKEY_CURRENT_USER registry key.

.

   /// The DEVMODE is stored in the user's registry.

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.

setupapi

.
Summary
The CM_Get_DevNode_Registry_Property function retrieves a specified device property from the registry. If the operation succeeds, the function returns CR_SUCCESS. Otherwise, it returns one of the CR_-prefixed error codes that are defined in Cfgmgr32.h.
.

public static extern int CM_Get_DevNode_Registry_Property(

.

  out Microsoft.Win32.RegistryValueKind pulRegDataType,

.

Declare Function CM_Get_DevNode_Registry_Property Lib "setupapi.dll" (TODO) As TODO

.

property, A CM_DRP_-prefixed constant value that identifies the device property to be obtained from the registry. These constants are defined in Cfgmgr32.h.

.

pulRegDataType, Optional, can be NULL. A pointer to a location that receives the registry data type, specified as a REG_-prefixed constant defined in Winnt.h.

.

In most cases you can use SetupDiGetDeviceRegistryProperty.

.

Also Microsoft.Win32.RegistryValueKind only contains enumerations for the basic kinds.

.

   Microsoft.Win32.RegistryValueKind kind;

.

   CM_Get_DevNode_Registry_Property(devinst, CM_DRP_DRIVER, out kind, IntPtr.Zero, ref length, 0);

.

     if (CR_SUCCESS == CM_Get_DevNode_Registry_Property(devinst, CM_DRP_DRIVER, out kind, buffer, ref length, 0))

.
Documentation
[CM_Get_DevNode_Registry_Property] on MSDN
.

        SetupDiGetDeviceRegistryProperty(NewDeviceInfoSet, DeviceInfoData, DirectCast(SPDRP_FRIENDLYNAME, Integer), propRegDataType, sbDesc, MAX_LEN, reqSize)

.

            SetupDiGetDeviceRegistryProperty(NewDeviceInfoSet, DeviceInfoData, DirectCast(SPDRP_DEVICEDESC, Integer), propRegDataType, sbDesc, MAX_LEN, reqSize)

.

        SetupDiGetDeviceRegistryProperty(NewDeviceInfoSet, DeviceInfoData, DirectCast(SPDRP_HARDWAREID, Integer), propRegDataType, sbHWID, MAX_LEN, reqSize)

.

DIBCI_NOINSTALLCLASS // Exclude a class if it has the NoInstallClass value entry in its registry key.

.

DIBCI_NODISPLAYCLASS // Exclude a class if it has the NoDisplayClass value entry in its registry key.

.

            if (SetupDiGetDeviceRegistryProperty(h, ref da, SPDRP_DRIVER, ref RegType, ptrBuf, BUFFER_SIZE, ref RequiredSize))

.

                if (SetupDiGetDeviceRegistryProperty(h, ref da, SPDRP_DEVICEDESC, ref RegType, ptrBuf, BUFFER_SIZE, ref RequiredSize))

.

            if (SetupDiGetDeviceRegistryProperty(h, ref da, SPDRP_DRIVER, ref RegType, ptrBuf, BUFFER_SIZE, ref RequiredSize))

.

'goes through all devices matching the HID guid and finds one with a registry entry string matching the name of the desired HID device, in this case a Midi device

.

    Dim devEnumInterfaceResult, devDetailResult, devEnumResult, destructionResult, registryPropertyResult As Boolean

.

            registryPropertyResult = SetupDiGetDeviceRegistryProperty(h, da, DeviceRegistryValueNames.SPDRP_DEVICEDESC, RegType, ptrButter, 0, RequiredSize)

.

            registryPropertyResult = SetupDiGetDeviceRegistryProperty(h, da, DeviceRegistryValueNames.SPDRP_DEVICEDESC, RegType, ptrButter, RequiredSize, RequiredSize)

.

            If registryPropertyResult Then

.

            registryPropertyResult = SetupDiGetDeviceRegistryProperty(h, da, DeviceRegistryValueNames.SPDRP_DRIVER, RegType, ptrButter, RequiredSize, RequiredSize)

.

            registryPropertyResult = SetupDiGetDeviceRegistryProperty(h, da, DeviceRegistryValueNames.SPDRP_DRIVER, RegType, ptrButter, RequiredSize, RequiredSize)

.

            If registryPropertyResult Then

.
Summary
The SetupDiGetDeviceRegistryProperty function retrieves the specified device property. This handle is typically returned by the SetupDiGetClassDevs or SetupDiGetClassDevsEx function. If the function succeeds, the return value is nonzero.
.

public static extern bool SetupDiGetDeviceRegistryProperty(

.

public static extern bool SetupDiGetDeviceRegistryProperty(

.

propertyRegDataType, Pointer to a variable that receives the registry data Type. This parameter can be NULL.</param>

.

Public Shared Function SetupDiGetDeviceRegistryProperty( _

.

/// Flags for SetupDiGetDeviceRegistryProperty().

.

enum SetupDiGetDeviceRegistryPropertyEnum : uint

.

          if (SetupDiGetDeviceRegistryProperty(h, ref da, SPDRP_DEVICEDESC, out RegType, ptrBuf, BUFFER_SIZE, out RequiredSize))

.

          if (SetupDiGetDeviceRegistryProperty(h, ref da, SPDRP_DRIVER, out RegType, ptrBuf, BUFFER_SIZE, out RequiredSize))

.

if ( SetupDiGetDeviceRegistryProperty(h, ref da, SPDRP_DEVICEDESC, out regType, ptrBuffer, BUFFER_SIZE, out RequiredSize) )

.

if ( SetupDiGetDeviceRegistryProperty(h, ref da, SPDRP_DRIVER, out regType, ptrBuffer, BUFFER_SIZE, out RequiredSize) )

.
Documentation
[SetupDiGetDeviceRegistryProperty] on MSDN
.
Summary
The SetupDiOpenDevRegKey function opens a registry storage key for device-specific configuration information and returns a handle to the key.
.

    int parameterRegistryValueKind,

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);

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.

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.

coredll

.

static extern void AudioUpdateFromRegistry();

.
Summary
This function creates a change notification handle and sets up initial change notification filter conditions. A wait on a notification handle succeeds when a change matching the filter conditions occurs in the specified registry key or subkeys.
.

        SND_ALIAS = &H10000          ' name is a registry alias

.

        SND_ALIAS = 0x10000,        // name is a registry alias

.

            SND_ALIAS = 0x10000,    // name is a registry alias

.

            SND_ALIAS = &H10000          ' name is a registry alias

.
Summary
Creates the specified key. If the key already exists in the registry, it is opened.
.

   out IntPtr phkResult, out RegistryDispositionValue lpdwDisposition);

.

enum RegistryDispositionValue : uint

.

Microsoft.Win32.Registry.LocalMachine.CreateSubKey(SubKey as string)

.
Summary
Deletes a named subkey from the specified registry key.
.
Summary
Removes a named value from the specified registry key.
.
Summary
Writes all the attributes of the specified open registry key into the registry.
.

RegistryKey.Flush()

.
Summary
Retrieves information about a specified registry key.
.
Summary
Retrieves the type and data for a specified name associated with an open registry key.
.

    /// Registry Order System color Description

.
Summary
When an application is launched from the registry HKLM\init, that application must call the SignalStarted function to notify the operating system that the application has been launched.
.

dw is an unsigned integer type parameter that corresponds to the launch code of the application in the HKLM\init registry. ie. If the registry value "Launch25" corresponds to the application that you want to launch, the application that you launch should call SignalStarted(25) when it has launched.

.

You can also look at the configured timeouts at the registry key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power".

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".

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

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


 
Access PInvoke.net directly from VS: