다음을 통해 공유


IDebugProgramPublisher2::SetDebuggerPresent

Tells the program publisher that a debugger is present and running.

HRESULT SetDebuggerPresent(
   BOOL fDebuggerPresent
);
int SetDebuggerPresent(
   int fDebuggerPresent
);

Parameters

  • fDebuggerPresent
    [in] Non-zero (TRUE) if a debugger is present, zero (FALSE) if it is not.

Return Value

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

Remarks

The presence or absence of a debugger is reflected in the data returned from the IDebugProgramProvider2::GetProviderProcessData method: the value returned there is set or cleared by a prior call to the SetDebuggerPresent method.

See Also

Reference

IDebugProgramPublisher2

IDebugProgramProvider2::GetProviderProcessData