Click or drag to resize

RegistryHelper Class

Registry helper class originally taken from the, "MFiles.System" namespace
Inheritance Hierarchy
SystemObject
  MFiles.VAF.CommonRegistryHelper

Namespace:  MFiles.VAF.Common
Assembly:  MFiles.VAF (in MFiles.VAF.dll) Version: 2.1.0.1 (2.1.0.1)
Syntax
C#
public class RegistryHelper

The RegistryHelper type exposes the following members.

Constructors
  NameDescription
Public methodRegistryHelper
Initializes a new instance of the RegistryHelper class
Top
Methods
  NameDescription
Public methodStatic memberCreateKey
Creates a registry key.
Public methodStatic memberDeleteRegKey(UIntPtr, RegistryHelperRegistryAccessFlags, String)
Deletes the registry key. The key must not have subkeys.
Public methodStatic memberDeleteRegKey(UIntPtr, RegistryHelperRegSAM, String)
Deletes the registry key. The key must not have subkeys.
Public methodStatic memberDeleteRegKeyEx_Wrapper
Deletes the registry key. Deals with missing implementation on pre-XP SP2 systems. The key must not have subkeys.
Public methodStatic memberDeleteRegValue
Deletes the registry value.
Public methodStatic memberEnumSubkeyByIndex
Enumerates a sub-key of the given key specified by index.
Public methodStatic memberEnumSubkeys
Enumerates all sub-keys. If key is missing, return empty vector.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodStatic memberGetProcAddress
Retrieves the address of an exported function or variable from the specified dynamic-link library (DLL).
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberIsWow64Process
Determines whether the specified process is running under WOW64 or an Intel64 of x64 processor.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberOpenKey
Tries to open registry key. If the key cannot be found, pbExists receives false.
Public methodStatic memberReadRegValue(UIntPtr, RegistryHelperRegistryAccessFlags, String, String)
Reads RegValue from registry. If the key or value is missing, tells it.
Public methodStatic memberReadRegValue(UIntPtr, RegistryHelperRegistryAccessFlags, String, String, RegistryHelperRegSAM)
Reads RegValue from registry. If the key or value is missing, tells it.
Public methodStatic memberRegCloseKey
Closes a handle to the specified registry key.
Public methodStatic memberRegDeleteKey
Deletes a subkey and its values. Note that key names are not case sensitive. - 64-bit Windows: On WOW64, 32-bit applications view a registry tree that is separate from the registry tree that 64-bit applications view. To enable an application to delete an entry in the alternate registry view, use the RegDeleteKeyEx function.
Public methodStatic memberRegDeleteKeyEx
Deletes a subkey and its values from the specified platform-specific view of the registry. Note that key names are not case sensitive. - To delete a subkey as a transacted operation, call the RegDeleteKeyTransacted function.
Public methodStatic memberRegDeleteValue
Removes a named value from the specified registry key. Note that value names are not case sensitive.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodStatic memberWriteRegValue
Writes the specified value to the registry.
Top
Fields
  NameDescription
Public fieldStatic memberADVAPI32_DLL
AdvApi32 library name.
Public fieldStatic memberERROR_FILE_NOT_FOUND
Error code, file not found.
Public fieldStatic memberERROR_MORE_DATA
Error code, more data.
Public fieldStatic memberERROR_NO_MORE_ITEMS
Error code, no more items.
Public fieldStatic memberERROR_SUCCESS
Error code, success.
Public fieldStatic memberHKEY_LOCAL_MACHINE
Local machine registry key, the others are in WINREG.H.
Public fieldStatic memberKERNEL32_DLL
Kernel32 library name.
Public fieldStatic memberREG_BINARY
Registry type, "binary" value.
Public fieldStatic memberREG_DWORD
Registry type, "number" value.
Public fieldStatic memberREG_DWORD_BIG_ENDIAN
Registry type, "big endian" value.
Public fieldStatic memberREG_DWORD_LITTLE_ENDIAN
Registry type, "little endian" value.
Public fieldStatic memberREG_EXPAND_SZ
Registry type, "expand string" value.
Public fieldStatic memberREG_LINK
Registry type, "link" value.
Public fieldStatic memberREG_MULTI_SZ
Registry type, "multi string" value.
Public fieldStatic memberREG_NONE
Registry type, "none" value.
Public fieldStatic memberREG_SZ
Registry type, "string" value.
Public fieldStatic memberUSER32_DLL
User32 library name.
Top
See Also