InstAPI.GetRegKeyAccessMask(String, UInt32, UInt32) Method

Definition

Retrieves a given registry path and modifies the given access mask to find the key in the correct location.

public:
 static bool GetRegKeyAccessMask(System::String ^ registryPath, System::UInt32 desiredAccess, System::UInt32 % accessMask);
public static bool GetRegKeyAccessMask (string registryPath, uint desiredAccess, ref uint accessMask);
static member GetRegKeyAccessMask : string * uint32 * uint32 -> bool
Public Shared Function GetRegKeyAccessMask (registryPath As String, desiredAccess As UInteger, ByRef accessMask As UInteger) As Boolean

Parameters

registryPath
String

A pointer to a buffer to receive the registry path.

desiredAccess
UInt32

An UInt32 value that represents the desired access to the key.

accessMask
UInt32

The access mask that should be used in calls to RegOpenKeyEx.

Returns

true if the call succeeded; otherwise, false.

Applies to