次の方法で共有


IDebugEngine2::SetRegistryRoot

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Sets the registry root for the debug engine (DE).

Syntax

HRESULT SetRegistryRoot( 
   LPCOLESTR pszRegistryRoot
);
int SetRegistryRoot( 
   string pszRegistryRoot
);

Parameters

pszRegistryRoot
[in] The registry root to use.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

This method allows Visual Studio to specify an alternate registry root that the DE should use to obtain registry settings; for example, "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0Exp".

See also