The state of a DC might be saved multiple times in last-in-first-out (LIFO) order. The routine returns an error code if there is not enough memory available to save the state.
The handling routine must keep a count of the number of saved states.
RestoreDCState is related to SaveDCState.