Partager via


SystemState.SetRegistryValueUInt32 Method

Applies To: Windows 8.1

Sets an unsigned 32-bit integer (unsigned REG_DWORD) value into the registry.

Namespace: Microsoft.Assessments.Runtime
Assembly: Microsoft.Assessments.Core (in Microsoft.Assessments.Core.dll)

Usage

'Usage
Dim instance As SystemState
Dim keyRoot As RegistryKey
Dim keyPath As String
Dim valueName As String
Dim data As UInteger

instance.SetRegistryValueUInt32(keyRoot, keyPath, valueName, data)

Syntax

'Declaration
Public Sub SetRegistryValueUInt32 ( _
    keyRoot As RegistryKey, _
    keyPath As String, _
    valueName As String, _
    data As UInteger _
)
public void SetRegistryValueUInt32 (
    RegistryKey keyRoot,
    string keyPath,
    string valueName,
    uint data
)
public:
void SetRegistryValueUInt32 (
    RegistryKey^ keyRoot, 
    String^ keyPath, 
    String^ valueName, 
    unsigned int data
)
public void SetRegistryValueUInt32 (
    RegistryKey keyRoot, 
    String keyPath, 
    String valueName, 
    UInt32 data
)
public function SetRegistryValueUInt32 (
    keyRoot : RegistryKey, 
    keyPath : String, 
    valueName : String, 
    data : uint
)

Parameters

  • keyRoot
    A handle to the root of the registry key.
  • keyPath
    The registry value path.
  • valueName
    The registry value name.
  • data
    A pointer to an item to set the registry value.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows 8.1

See Also

Reference

SystemState Class
SystemState Members
Microsoft.Assessments.Runtime Namespace