Share via


ILocalRegistry3.GetLocalRegistryRoot(String) Method

Definition

Returns the local registry root.

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

Parameters

pbstrRoot
String

[out] Pointer to a string that contains the local registry root.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Remarks

New packages should use GetLocalRegistryRootEx, which also returns the registry key to use for per-user or per-computer settings.

COM Signature

From objext.idl:

HRESULT ILocalRegistry3::GetLocalRegistryRoot(  
    [out] BSTR* pbstrRoot  
);  

Applies to