Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Windows API


ghost's Avatar
0 0

I have a couple of questions regarding the windows API. First, is there any way to find out what resources (RAM, CPU etc) a process is using? I assume there is, as Task Manager can do it.

Second, I would like to know how Vista "hijacks" a window with it's new "Program has stopped responding" message. It acts like the program created the dialog box, and won't let you use the window (just like a normal dialog). If possible, I would like to know if it is possible to replicate this.

I have tried google, but nothing of any use came up, so I thought I'd ask here


ghost's Avatar
0 0

mastergamer wrote: Second, I would like to know how Vista "hijacks" a window with it's new "Program has stopped responding" message. It acts like the program created the dialog box, and won't let you use the window (just like a normal dialog). If possible, I would like to know if it is possible to replicate this.

What you described is a feature of an operating system, I'm sure it may be able to do it, but I'm assuming it would be difficult to do, otherwise it would've been in place years ago.


richohealey's Avatar
Python Ninja
0 0

hmm, well if you can get the active thread to spawn the window, then it will stop that thread until the box is shut, not sure how you'd do it with a threaded app, IE stop the other threads