Platform SDK: Exchange Server |
The HrMonCollectAssociationStats function updates the statistic on the current number of gateway connections to the foreign system.
Header file: | MONITOR.H |
Library: | MONITOR.LIB |
HRESULT HrMonCollectAssociationStats( BOOL fSetNewTotal, LONG cAssociations );
Note The number of current connections can never be less than zero. If you attempt to set the cAssociations parameter to a value that makes the current number of connections is less than zero, HrMonCollectAssociationStats fails, returning E_INVALIDARG.
See Return Values.
HrMonCollectAssociationStats is typically called each time a new connection is made or an existing connection is broken.
For more information on this function, see Monitor Sampling Functions and the HrMonCollectAssociationStats function in MONITOR.C under the MONITOR code sample in Code Samples folder.
HrMonCollectMessageXferStats, HrMonCollectNDRStats, HrMonInit, HrMonUninit