How to raise your own blue screen of death

I want to raise my own blue screen. I have found out that there is a function that calls the blue screen. This is the function KeBugCheckEx() that is used in programming Device drivers (DDK) I need to know how to call the function and what library I need to link.
I develop in VC++ 6 on the windows intel platform.
LVL 1
phiroAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jhanceCommented:
KeBugCheckEx() cannot be called from a user-space application.  It's a kernel mode function and is only available in a device driver.  If you really want to call it, you can build a device driver of your own with the NT DDK and then call into it from a user space application through DeviceIoControl().

Of course the real question is why do you want to do this?  Playing tricks on someone you don't like?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
chensuCommented:
I can't think of an application that needs to do that.
0
phiroAuthor Commented:
Well, it is ment as a kind of screen saver. Generating a blue screen yourself and putting tekst on it in any normal way falls through as being not the real thing. It is not ment as nasty trick or part of a virus.
A tool or app that emulates the same screen would be acceptable.
0
jhanceCommented:
A "real thing" screensaver doesn't seem very useful.  If you succeed in forcing a BSOD, there is no recovery.

I'd challenge your assertion that making your own blue-screen and putting text on it is phony looking.  See:

http://www.sysinternals.com/bluescrn.htm

This thing is so realistic it will drive you NUTS!
0
phiroAuthor Commented:
Indeed. This will do the trick.
Thanx.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C++

From novice to tech pro — start learning today.