ILocalRegistry2.GetLocalRegistryRoot(String) 方法

定义

返回本地注册表根目录。

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

弄指向包含本地注册表根的字符串的指针。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 objext:

HRESULT ILocalRegistry2::GetLocalRegistryRoot(

[out] BSTR* pbstrRoot

);

适用于