VKD_Define_Paste_Mode

include vkd.inc

VxDcall VKD_Define_Paste_Mode


The VKD_Define_Paste_Mode service 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.

Parameters

AL

Specifies whether to use Interrupt 16h or Interrupt 09h paste. It can be one of the following values:

Value Meaning

0 Allows Interrupt 16h paste attempts
1 Forces Interrupt 09h pasting

EBX

Specifies the virtual machine handle.

Return Value

This service has no return value.

Uses

Flags