Share via


IDebugProcess3::DisableENC

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 explicitly disables Edit and Continue on this process (and all programs it contains). A custom port supplier should always return E_NOTIMPL.

Syntax

HRESULT DisableENC(
   EncUnavailableReason reason
);
   EncUnavailableReason reason
);

Parameters

reason
[in] A value from the EncUnavailableReason enumeration.

Return Value

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

Note

A custom port supplier should always return E_NOTIMPL.

Remarks

Once Edit and Continue is disabled for a process, it can be re-enabled only by restarting the process.

See also