Desktop Functions: Smart Device Functions:
|
Search Results for "registry" in [All]opengl321: OpenGL try here -->/oficial OpenGL XML API Registry/ https://cvs.khronos.org/svn/repos/ogl/trunk/doc/registry/public/api/gl.xml shell32lpVerb 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. kernel32shlwapiThe 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. wininet10: InternetOpen const int INTERNET_OPEN_TYPE_PRECONFIG = 0; // use registry configuration Const INTERNET_OPEN_TYPE_PRECONFIG = 0 ' // use registry configuration winmm11: PlaySound
/// <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 Constants12: NERR_
/// <summary> 2611 - Service failed to start due to bad startup information in the registry. </summary>
public const int RplBadRegistry = 2611; 13: PERCEIVED
///<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> 14: PROPERTYKEY
// These PKEYs correspond to registry values under the device class GUID key 15: WINERROR
/// 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); odbc3216: SQLDataSources 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. 19: PRINTER_INFO_9
/// 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 22: HRESULT
///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) 23: NtStatus
RegistryRecovered = 0x40000009, 24: SE_OBJECT_TYPE
SE_REGISTRY_KEY,
SE_REGISTRY_WOW64_32KEY
SE_REGISTRY_KEY
SE_REGISTRY_WOW64_32KEY 25: SPDRP
/// <summary>verify even if the settings in the registry disable it</summary>
/// <summary>set to false if verify succeeded due to registry settings</summary> 28: SystemMetric
/// or registry settings may not be present. setupapi
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))
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
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) ) user32
CDS_UPDATEREGISTRY = 0x00000001,
CDS_UPDATEREGISTRY = &H1
ChangeDisplaySettingsEx(d.DeviceName, ref dm, IntPtr.Zero, CDS_UPDATEREGISTRY, IntPtr.Zero);
CDS_UPDATEREGISTRY = 0x00000001,
CDS_UPDATEREGISTRY = &H1 40: CreatePopupMenu
RegistryKey root;
RegistryKey rk;
root = Registry.LocalMachine;
root = Registry.ClassesRoot;
RegistryKey root;
RegistryKey rk;
root = Registry.LocalMachine;
root = Registry.ClassesRoot; 41: SetSysColors 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); userenv42: LoadUserProfile 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. rpcrt443: UuidCreate 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(); 47: PlaySound
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 48: RegCreateKeyEx
out IntPtr phkResult, out RegistryDispositionValue lpdwDisposition);
enum RegistryDispositionValue : uint Microsoft.Win32.Registry.LocalMachine.CreateSubKey(SubKey as string) 49: RegDeleteKey
50: RegDeleteValue
51: RegFlushKey RegistryKey.Flush() 52: RegQueryInfoKey
53: RegQueryValueEx
54: SetSysColors
/// Registry Order System color Description 55: SignalStarted 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". oleaut3257: RegisterTypeLib
Interfaces59: IAutoComplete2
// the registry path, including the value name, where the format 60: ICatRegister
Cut off search results after 60. Please refine your search. |