InstAPI.GetRegKeyAccessMask(String, UInt32, UInt32) 方法

定义

检索给定的注册表路径,并修改给定的访问掩码以在正确的位置中找到密钥。

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

参数

registryPath
String

一个指向用于接收注册表路径的缓冲区的指针。

desiredAccess
UInt32

一个 UInt32 值,该值表示对密钥所需的访问权限。

accessMask
UInt32

调用 RegOpenKeyEx 时应使用的访问掩码。

返回

如果调用成功,则为 true;否则为 false

适用于