IDebugProcess3::SetHostingProcessLanguage

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

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

See also