Compartilhar via


ILocalRegistry3.GetLocalRegistryRoot Method

Returns the local registry root.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Function GetLocalRegistryRoot ( _
    <OutAttribute> ByRef pbstrRoot As String _
) As Integer
int GetLocalRegistryRoot(
    out string pbstrRoot
)
int GetLocalRegistryRoot(
    [OutAttribute] String^% pbstrRoot
)
abstract GetLocalRegistryRoot : 
        pbstrRoot:string byref -> int
function GetLocalRegistryRoot(
    pbstrRoot : String
) : int

Parameters

  • pbstrRoot
    Type: String%

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

Return Value

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

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
);

.NET Framework Security

See Also

Reference

ILocalRegistry3 Interface

Microsoft.VisualStudio.Shell.Interop Namespace