typedef struct { DWORD Device_VM_Handle; DWORD ibThis; DWORD ibThis_offset; DWORD ibNext; DWORD ibNext_offset; DWORD ibCurrent; DWORD iNumberOfPenPackets; DWORD wPDKLast; DWORD pDataType; DWORD piNumberOfPenPackets; DWORD piThis_Offset; DWORD piThis; LPDRV_PENPACKET pPenPacketBuffer; LPDRV_PENINFO pPenInfo; DWORD pOEMBuffer; DWORD pfnEntryPoint; } _VpenD_Register;
Holds information that is critical to the functioning of the driver for a particular virtual machine (VM). All information in this structure will be updated if the current VM changes to a VM where there is a registered device to handle pen events. The state of the hardware should be preserved from VM to VM.
Device_VM_Handle
Handle of the virtual machine (VM) that receives the pen packet information. For the sample pen driver, the only handle in this member of the structure is the system VM handle.
ibThis
Index into the pen packet buffer to a pen packet location that has not been serviced.
ibThis_offset
Offset to pen packet that has not been serviced.
ibNext
Index to next available location.
ibNext_offset
Offset to next available location.
ibCurrent
Current index into the circular pen packet buffer.
iNumberOfPenPackets
Number of pen packets in the pen packet buffer that need to be serviced.
wPDKLast
State of last gathered pen packet.
pDataType
A pointer to the variable in the pen driver that will receive the data type values.
piNumberOfPenPackets
A pointer to the variable in the pen driver that will receive the number of pen packets that need to be serviced.
piThis_Offset
A pointer to the start of the buffer when pen packets are transferred.
piThis
TBD
pPenPacketBuffer
A pointer to the variable in the pen driver that will receive the pen packets.
pPenInfo
A pointer to a DRV_PENINFO structure in the pen driver.
pOEMBuffer
A pointer to an OEM-specific buffer. This is OEM defined.
pfnEntryPoint
The selector and offset of the routine that will service virtual pen driver interrupts in the pen driver.