IDebugProcessSecurity::QueryCanSafelyAttach
Applies to: Visual Studio Visual 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 allows the port supplier to display a warning before the user attaches to an unsafe process.
Syntax
HRESULT QueryCanSafelyAttach();
int QueryCanSafelyAttach();
Return Value
The return values are as follows:
S_OK
: Attaching to process is safe and no warning dialog box is shown.S_FALSE
: Attaching could be a security problem and a dialog box with a warning is shown.FAILURE
: Attaching to process fails.