## Display Device Driver Reference for OS/2

[prev][next][parent][TOC]

### PMIREQUEST_SAVESTATE - Remarks

miState in the VIDEOSTATE data structure is the current mode ID in VIDEOMODEINFO.

Four states can be saved and restored by setting fStateFlags and related fields in VIDEOSTATE accordingly, as follows:

Video mode (STATEFLAG_REGISTERS)

The Set Mode command list was saved in pModeData when the mode was set. For saving state, the values of registers used by BOUTB are copied back to pModeData. For restoring state, pModeData is executed to set the mode.

Video Memory (STATEFLAG_VRAM)

Video memory of size ulVRAMSaveSize is saved to pVRAM in saving state or restored from pVRAM in restoring state.

Color Lookup Table (STATEFLAG_CLUT)

Color Lookup Table can be saved to or restored from pCLUT.

Font (STATEFLAG_FONT)

Font can be saved to or restored from pFont.