CMemoryState::Difference

BOOL Difference( const CMemoryState& oldState, const CMemoryState& newState );

Return Value

Nonzero if the two memory states are different; otherwise 0.

Parameters

oldState

The initial memory state as defined by a CMemoryState checkpoint.

newState

The new memory state as defined by a CMemoryState checkpoint.

Remarks

Compares two CMemoryState objects, then stores the difference into this CMemoryState object. Checkpoint must have been called for each of the two memory-state parameters.

Example

See the example for the CMemoryState constructor.

CMemoryState OverviewClass MembersHierarchy Chart