StdRegProv

The StdRegProv class contains methods that interact with the system registry. You can use these methods to:

Verify the access permissions for a user

Create, enumerate, and delete registry keys

Create, enumerate, and delete named values

Read, write, and delete data values

Quick Start

Properties

Methods

CheckAccess

The CheckAccess method verifies that the user possesses the specified permissions. The method returns a uint32 which is 0 if successful or some other value if any other error occurred.

View full documentation.

CreateKey

The CreateKey method creates a subkey in the specified tree.

View full documentation.

DeleteKey

The DeleteKey method deletes a subkey in the specified tree.

View full documentation.

DeleteValue

The DeleteValue method deletes a named value in the specified subkey.

View full documentation.

EnumKey

The EnumKey method enumerates the subkeys for the given path.

View full documentation.

EnumValues

The EnumValues method enumerates the named values of the given subkey.

View full documentation.

GetBinaryValue

The GetBinaryValue method returns the data value for a named value whose data type is REG_BINARY. The GetBinaryValue method returns a uint32 which is 0 if successful or some other value if any other error occurred.

View full documentation.

GetDWORDValue

The GetDWORDValue method returns the data value for a named value whose data type is REG_DWORD.

View full documentation.

GetExpandedStringValue

The GetExpandedStringValue method returns the data value for a named value whose data type is REG_EXPAND_SZ.

View full documentation.

GetMultiStringValue

The GetMultiStringValue method returns the data value for a named value whose data type is REG_MULTI_SZ. The GetMultiStringValue method returns a uint32 which is 0 if successful or some other value if any other error occurred.

View full documentation.

GetQWORDValue

The GetQWORDValue method returns the data value for a named value whose data type is REG_QWORD.

View full documentation.

GetSecurityDescriptor

The GetSecurityDescriptor method returns the specified key’s security descriptor in a __SecurityDescriptor. The method returns a uint32 which is 0 if successful or some other value if any other error occurred.

View full documentation.

GetStringValue

The GetStringValue method returns the data value for a named value whose data type is REG_SZ.

View full documentation.

SetBinaryValue

The SetBinaryValue method sets the data value for a named value whose data type is REG_BINARY. The SetBinaryValue method returns a uint32 which is 0 if successful or some other value if any other error occurred.

View full documentation.

SetDWORDValue

The SetDWORDValue method sets the data value for a named value whose data type is REG_BINARY.

View full documentation.

SetExpandedStringValue

The SetExpandedStringValue method sets the data value for a named value whose data type is REG_EXPAND_SZ. The SetExpandedStringValue method returns a uint32 which is 0 if successful or some other value if any other error occurred.

View full documentation.

SetMultiStringValue

The SetMultiStringValue method sets the data value for a named value whose data type is REG_MULTI_SZ. The SetMultiStringValue method returns a uint32 which is 0 if successful or some other value if any other error occurred.

View full documentation.

SetQWORDValue

The SetQWORDValue method sets the data value for a named value whose data type is REG_QWORD.

View full documentation.

SetSecurityDescriptor

The SetSecurityDescriptor method updates the specified key’s security descriptor with the supplied __SecurityDescriptor. The method returns a uint32 which is 0 if successful or some other value if any other error occurred.

View full documentation.

SetStringValue

The SetStringValue method sets the data value for a named value whose data type is REG_MULTI_SZ.

View full documentation.

Examples

Help and Questions

  Community Content

You are cordially invited to add knowledge to this page. If you have sample code or additional information related to this WMI class, please share it. Use the comment form to send your information. We will edit and incorparate it into the reference library. Thank you!

Please do not use the comment form to submit questions. If you have questions or need assistance, visit our free forum: Help me with WMI.

 Content last updated: 2013-12-27 14:00:34 (UTC).

Facebooktwittergoogle_pluspinterestlinkedinFacebooktwittergoogle_pluspinterestlinkedin