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.
精彩评论