Share via


IDebugProcess3::SetHostingProcessLanguage

Note

This article applies to Visual Studio 2015. 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

This method sets the language that the process will be hosted under. This language can then be used by the debug engine (DE) to load the appropriate expression evaluator.

Syntax

HRESULT SetHostingProcessLanguage(  
   REFGUID guidLang  
);  
int SetHostingProcessLanguage(  
   ref Guid guidLang  
);  

Parameters

guidLang
[in] GUID of the language that the DE should use. Specify GUID_NULL (C++) or Guid.Empty (C#) to have the DE use the default language.

Return Value

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

Remarks

GetHostingProcessLanguage can be used to retrieve the current language setting.

See Also

IDebugProcess3
GetHostingProcessLanguage