The SaveDCState and RestoreDCState subfunctions manage a stack of entries that correspond to most of the state of a DC. SaveDCState pushes an entry on the stack. RestoreDCState retrieves one of the pushed entries and uses it to revert the DC back to its earlier saved state. Note that a particular RestoreDCState call can pop more than one entry from the stack of SaveDC entries.


[Back: Opening and Closing DCs]
[Next: Resetting a Device Context]