ILocalRegistry3.GetLocalRegistryRoot(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回本地注册表根目录。
public:
int GetLocalRegistryRoot([Runtime::InteropServices::Out] System::String ^ % pbstrRoot);
int GetLocalRegistryRoot([Runtime::InteropServices::Out] std::wstring const & & pbstrRoot);
public int GetLocalRegistryRoot (out string pbstrRoot);
abstract member GetLocalRegistryRoot : string -> int
Public Function GetLocalRegistryRoot (ByRef pbstrRoot As String) As Integer
参数
- pbstrRoot
- String
弄指向包含本地注册表根的字符串的指针。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
实现
注解
新包应使用 GetLocalRegistryRootEx ,此参数还会返回用于每个用户或每台计算机的设置的注册表项。
COM 签名
从 objext:
HRESULT ILocalRegistry3::GetLocalRegistryRoot(
[out] BSTR* pbstrRoot
);