VKD_Define_Paste_Mode

include vkd.inc

mov     ah, interrupt
mov     ebx, VMHandle
VxDCall VKD_Define_Paste_Mode

Selects the virtual-machine paste mode and specifies whether Interrupt 16h pasting can be attempted or not. Some applications hook Interrupt 09h which often disallows pasting using Interrupt 16h. The VKD can detect this by setting a time out to see if any Interrupt 16h handling is being done by the application. If not, the VKD switches to Interrupt 09h paste.

If an application does some Interrupt 16h handling, but cannot support the Interrupt 16h paste operation, a PIF bit can be set to indicate that only Interrupt 09h pasting should be used. Uses Flags.

interrupt
Interrupt flag that specifies whether to use Interrupt 16h or Interrupt 09h to paste. Can be one of these values:
Value Meaning
0 Allows Interrupt 16h paste attempts
1 Forces Interrupt 09h pasting

VMHandle
Handle of the virtual machine.