InstAPI.GetRegKeyAccessMask(String, UInt32, UInt32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
- accessMask
- UInt32
The access mask that should be used in calls to RegOpenKeyEx.
Returns
true
if the call succeeded; otherwise, false
.