Share via


IDebugBoundBreakpoint2::SetHitCount

Note

This article applies to Visual Studio 2015. 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

Sets the hit count for the bound breakpoint.

Syntax

HRESULT SetHitCount(   
   DWORD dwHitCount  
);  
int SetHitCount(   
   uint dwHitCount  
);  

Parameters

dwHitCount
[in] The hit count to set.

Return Value

If successful, returns S_OK; otherwise, returns an error code. Returns E_BP_DELETED if the state of the bound breakpoint object is set to BPS_DELETED (part of the BP_STATE enumeration).

Remarks

The hit count is the number of times this breakpoint has fired during the current run of the session.

This method is typically called by the debug engine to update the current hit count on this breakpoint.

See Also

IDebugBoundBreakpoint2
BP_STATE