Home > Mobile >  Call WinRing0 analog keyboard key problems
Call WinRing0 analog keyboard key problems

Time:09-20

Environment:
Qt4.8.0 qtcreator2.4.1 32-bit doing system
The first is a static library, according to the manual, WinRing0. Lib and OlsApi h in the project directory, add OlsApi. J h, then right click add library in project - & gt; External libraries, choose add WinRing0 static lib, then the code calls InitializeOls (), you will be prompted InitializeOls undefined, if add library system library, run time prompt can not find a WinRing (tried to add other libraries such as winmm. Lib, you can find, and call the function is normal, so once considered WinRing0. DLL problem, but in other places to download WinRing0. DLLS results are the same, so again doubt),

Really not line, only use dynamic library, direct load QLibrary WinRing0. DLL, can load the inside of the call function, on the Internet to find some examples in the test is a ps/2 keyboard (I)
X64 WriteIoPortByte (0, 0 xd2);
Xe2 WriteIoPortByte (0 x60, 0);
X64 WriteIoPortByte (0, 0 xd2);
WriteIoPortByte (0 x60, MapVirtualKey (' a ', 0));
Sleep (1);
X64 WriteIoPortByte (0, 0 xd2);
WriteIoPortByte (0 x60, 0 xe0-0xfc);
X64 WriteIoPortByte (0, 0 xd2);
WriteIoPortByte (0 x60, (MapVirtualKey (' a ', 0) | 0 x80));
Memory and then prompt 0 x60 not to read...

Hope everyone some directions ~ ~

CodePudding user response:

You haven't tried calling WinRing0. Lib?

CodePudding user response:

Don't know did you solve, with solutions

CodePudding user response:

The compiler should be vs library, qt it won't
  •  Tags:  
  • Qt
  • Related