共用方式為


ILocalRegistry4.GetLocalRegistryRootEx(UInt32, UInt32, String) Method

Definition

Returns the local registry root.

public:
 int GetLocalRegistryRootEx(System::UInt32 dwRegType, [Runtime::InteropServices::Out] System::UInt32 % pdwRegRootHandle, [Runtime::InteropServices::Out] System::String ^ % pbstrRoot);
int GetLocalRegistryRootEx(unsigned int dwRegType, [Runtime::InteropServices::Out] unsigned int & pdwRegRootHandle, [Runtime::InteropServices::Out] std::wstring const & & pbstrRoot);
public int GetLocalRegistryRootEx (uint dwRegType, out uint pdwRegRootHandle, out string pbstrRoot);
abstract member GetLocalRegistryRootEx : uint32 * uint32 * string -> int
Public Function GetLocalRegistryRootEx (dwRegType As UInteger, ByRef pdwRegRootHandle As UInteger, ByRef pbstrRoot As String) As Integer

Parameters

dwRegType
UInt32

[in] A __VsLocalRegistryType value that specifies the registry hive.

pdwRegRootHandle
UInt32

[in] A __VsLocalRegistryRootHandle value that specifies the registry root handle.

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.

Remarks

This method is safe to access from any thread.

Applies to