IDebugEngine2::SetRegistryRoot
如需 Visual Studio 2017 的最新文件請參閱 Visual Studio 2017 文件。
設定偵錯引擎 (DE) 的登錄根目錄。
語法
HRESULT SetRegistryRoot(
LPCOLESTR pszRegistryRoot
);
int SetRegistryRoot(
string pszRegistryRoot
);
參數
pszRegistryRoot
[in]若要使用的登錄根目錄。
傳回值
如果成功,傳回S_OK
; 否則傳回錯誤碼。
備註
此方法可讓Visual Studio來指定替代的登錄根目錄 DE 應該用來取得登錄設定; 例如,「 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0Exp 」。