Restoring the Driver State

The client application restores the driver state by sending ICM_SETSTATE. The client application recalls the state information from the ‘strd’ data chunk of the AVI file. (The information was originally obtained with the ICM_GETSTATE message.) The client application does not validate any data in the state information. It simply transfers the state information to your driver.

The client application sends the information to your driver in a buffer pointed to by dwParam1. The size of the buffer is specified in dwParam2. The organization of the data in the buffer is driver dependent. If dwParam1 is NULL, your driver should return to its default state.

Note All information required for decompressing the image data should be part of the format data. Only optional compression parameters can be included with the state information.