开发者

How to freeze the screen using windows APIs?

开发者 https://www.devze.com 2023-01-26 12:46 出处:网络
Is there an API on windows that freezes everything for a number s开发者_Python百科econds then resume it normally again?I seriously doubt there is. What you could do, however, is to take a snapshot of

Is there an API on windows that freezes everything for a number s开发者_Python百科econds then resume it normally again?


I seriously doubt there is. What you could do, however, is to take a snapshot of whatever is currently displayed and then create a window filling the entire screen (or screens) and fill that window with the snapshot you've just taken. That would give the appearance of freezing everything.

Of course, it only gives the appearance of freezing everything; all processes and windows would update as normal behind your "snapshot window".


I haven't tried it recently, but I got burned by that once a few years ago:

Set the priority of a process to Real-Time and enter a loop. On multi-core systems you probably need one thread per logical core.

Side effects include overheating the computer.

0

精彩评论

暂无评论...
验证码 换一张
取 消