type
_DEBUG_CONTROL_CODE = (
DebugSysReadIoSpace = 14,
DebugSysWriteIoSpace = 15,
DebugSysReadMsr = 16,
DebugSysWriteMsr = 17,
DebugSysReadBusData = 18,
DebugSysWriteBusData = 19
);
DEBUG_CONTROL_CODE = _DEBUG_CONTROL_CODE;
function ZwSystemDebugControl(ControlCode: _DEBUG_CONTROL_CODE; InputBuffer: Pointer; InputBufferLength: ULONG; OutputBuffer: Pointer; OutputBufferLength: ULONG; ReturnLength: PULONG): LongInt; stdcall; external ''ntdll.dll'';
procedure KeyDown_WINIO_OneKey(vKeyCode: Cardinal);
const
KBC_KEY_CMD = $64; //键盘命令端口
KBC_KEY_DATA = $60;