Desktop Functions: Smart Device Functions:
|
Search Results for "registry" in [All]shlwapiThe 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 dwmapiA 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 6: ICatRegister
7: IDeskBand
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) 8: IDeskBand2
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) 9: IFilter
//IOLECommandTarget is registered in the registry oleaut3211: RegisterTypeLib
kernel32gdi32
Console.WriteLine("\nAny changes will not persist a reboot - to do so, remove the font entry from the registry."); rpcrt416: 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. cfgmgr32
NoRegistryHandle = 0x0000001C,
RegistryError = 0x0000001D,
NoSuchRegistryKey = 0x0000002E, 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. odbc3229: 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") Constants30: NERR_
/// <summary> 2611 - Service failed to start due to bad startup information in the registry. </summary>
public const int RplBadRegistry = 2611; 31: 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> 32: PROPERTYKEY
// These PKEYs correspond to registry values under the device class GUID key 33: 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); shell3234: ShellExecuteEx 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. userenv35: 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. user32
CDS_UPDATEREGISTRY = 0x00000001,
CDS_UPDATEREGISTRY = &H1
ChangeDisplaySettingsEx(d.DeviceName, ref dm, IntPtr.Zero, CDS_UPDATEREGISTRY, IntPtr.Zero);
CDS_UPDATEREGISTRY = 0x00000001,
CDS_UPDATEREGISTRY = &H1 39: CreatePopupMenu
RegistryKey root;
RegistryKey rk;
root = Registry.LocalMachine;
root = Registry.ClassesRoot;
RegistryKey root;
RegistryKey rk;
root = Registry.LocalMachine;
root = Registry.ClassesRoot; 40: 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); crypt32
// registry. 42: CryptProtectData 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. opengl3243: OpenGL try here -->/oficial OpenGL XML API Registry/ https://cvs.khronos.org/svn/repos/ogl/trunk/doc/registry/public/api/gl.xml advapi3244: DefaultPassword
For Registry Keys
System.Security.AccessControl.RegistrySecurity 46: GetSecurityInfo
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. 48: RegCloseKey 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).
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); 50: RegCopyTree
51: RegCreateKeyA [Microsoft.Win32.RegistryKey.CreateSubKey] 52: RegCreateKeyEx
NOT EXECUTABLE!!! PLEASE USE "Microsoft.Win32.Registry" and "Microsoft.Win32.RegistryKey" Microsoft.Win32.RegistryKey.CreateSubKey 53: RegDeleteKey Microsoft.Win32.RegistryKey.DeleteSubKey() (the non-WOW64 version)
54: RegDeleteKeyEx Microsoft.Win32.RegistryKey.DeleteSubKey() (the non-WOW64 version)
55: RegDeleteTree
hiveKey = Registry.LocalMachine.OpenSubKey(subKey); Type type = typeof(RegistryKey); 57: RegEnumKeyEx Microsoft.Win32.RegistryKey.GetSubKeyNames()
Throw New ApplicationException("Cannot access a closed registry key") 58: RegEnumValue
60: RegGetValue
/* 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. |