oblitum / Interception

The Interception API aims to build a portable programming interface that allows one to intercept and control a range of input devices.
http://oblita.com/interception
1.37k stars 267 forks source link

Press “Pause Break” key , thread block #47

Closed magicdmer closed 7 years ago

magicdmer commented 7 years ago

I build the cadstop sample and run it in windows 7 x86, all is ok utill i press "Pause Break" key. I use procexp look up the thread , found the thread is blocked with State: Wait:WrLpcReply.

oblitum commented 7 years ago

Per twitter you said your problem was because you clicked Pause Break on the console program, which just paused the thread correct?

Notice that the caps2esc sample seems a console program but if you build it using the build scripts provided in this repository, using the WDK, you get a program that doesn't create any console window and hence you shouldn't be able to pause it without a window, it's in fact a Windows program.

Just for record, is that what happened? You're building it without the provided scripts and is getting a console window when executing it?

oblitum commented 7 years ago

Notice how the build file for caps2esc differs from others. As you can see caps2esc is set to be a Windows program, not a console one.

oblitum commented 7 years ago

All OK as you reported.