Edit

IDebugProcessSecurity::QueryCanSafelyAttach

This method allows the port supplier to display a warning before the user attaches to an unsafe process.

Syntax

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.

See also