SAVERESTORESTATE


include vmd.inc

mov     eax, SAVERESTORESTATE
mov     cx,  ActionFlag
mov     edi, OFFSET32 SaveBuf
mov     esi, OFFSET32 RestoreBuf
Call    CursorProc

Saves or restores the state of the cursor VxD, or reports the required size, in bytes, of the buffer used to save the VxD's state information.

ActionFlag

One of the following actions:

Action

Meaning

0

Returns the required size, in bytes, of the buffer used to save the cursor state

1

Saves state information in the buffer pointed to by EDX

2

Restores state information from the buffer pointed to by ESI


SaveBuf

Address of the buffer in which the cursor VxD saves its state information. Used only if ActionFlag is 1.

RestoreBuf

Address of the buffer from which the cursor VxD restores its state information. Used only if ActionFlag is 2.