473,806 Members | 2,697 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Blue screen program in C#

Hello,

I need a program what generates me a blue screen in Windows XP with .net!
This should be simple, but how?

Please help me.

Mario
Oct 18 '06
17 11849
I thought virus too. I still dont see why you would need to intentionally
recreate it for a windows xp embedded system.

Are you trying to recreate it to see the effect on the system if the BSOD
were to happen while it is running? I am baffled.

"Mario" <ma********@hot mail.comwrote in message
news:OL******** ******@TK2MSFTN GP05.phx.gbl...
No, I am not trying to create a virus, the reason why I need this, is to
test a WindowsXPembedd ed system...

news.microsoft. com schrieb:
>Are you trying to create a virus?

I can't imagine why you would want a intentional BSOD!!!

"Mario" <ma***@web.dewr ote in message
news:3B******* *************** ************@mi crosoft.com...
>>Hello,

I need a program what generates me a blue screen in Windows XP with
.net!
This should be simple, but how?

Please help me.

Mario

Oct 18 '06 #11
Yes, that is what I am trying to do. I use a WindowsXPembedd ed system
with a Windows CE realtime Kernel. Now I need to test the acting of the
kernel of Windows CE cashes.
Daniel schrieb:
I thought virus too. I still dont see why you would need to intentionally
recreate it for a windows xp embedded system.

Are you trying to recreate it to see the effect on the system if the BSOD
were to happen while it is running? I am baffled.

"Mario" <ma********@hot mail.comwrote in message
news:OL******** ******@TK2MSFTN GP05.phx.gbl...
>No, I am not trying to create a virus, the reason why I need this, is to
test a WindowsXPembedd ed system...

news.microsoft .com schrieb:
>>Are you trying to create a virus?

I can't imagine why you would want a intentional BSOD!!!

"Mario" <ma***@web.dewr ote in message
news:3B****** *************** *************@m icrosoft.com...
Hello,

I need a program what generates me a blue screen in Windows XP with
.net!
This should be simple, but how?

Please help me.

Mario

Oct 18 '06 #12
Just write an unmanaged application that overwrites some system memory.
Using C, this is easily done using pointers. I know, because it happened to
me once or twice many years ago.

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Shooter
http://unclechutney.blogspot.com

A man, a plan, a canal, a palindrome that has.. oh, never mind.

"Mario" <ma***@web.dewr ote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
Yes, that is what I am trying to do. I use a WindowsXPembedd ed system with
a Windows CE realtime Kernel. Now I need to test the acting of the kernel
of Windows CE cashes.
Daniel schrieb:
>I thought virus too. I still dont see why you would need to intentionally
recreate it for a windows xp embedded system.

Are you trying to recreate it to see the effect on the system if the BSOD
were to happen while it is running? I am baffled.

"Mario" <ma********@hot mail.comwrote in message
news:OL******* *******@TK2MSFT NGP05.phx.gbl.. .
>>No, I am not trying to create a virus, the reason why I need this, is to
test a WindowsXPembedd ed system...

news.microsof t.com schrieb:
Are you trying to create a virus?

I can't imagine why you would want a intentional BSOD!!!

"Mario" <ma***@web.dewr ote in message
news:3B***** *************** **************@ microsoft.com.. .
Hello,
>
I need a program what generates me a blue screen in Windows XP with
.net!
This should be simple, but how?
>
Please help me.
>
Mario
>
>

Oct 18 '06 #13
Kevin Spencer <sp**@uce.govwr ote:
Just write an unmanaged application that overwrites some system memory.
Using C, this is easily done using pointers. I know, because it happened to
me once or twice many years ago.
This *shouldn't* result in the BSOD - the OS should protect itself
against malicious programs running in user mode. As another poster
mentioned, writing a dodgy driver is more likely to get results.

Mind you, on CE it may be easier to provoke a BSOD.

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Oct 18 '06 #14
This link is for educational purposes only, Mario. It can certainly be done
with .NET;

http://articles.techrepublic.com.com...g=feed&subj=tr

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Mario" wrote:
Hello,

I need a program what generates me a blue screen in Windows XP with .net!
This should be simple, but how?

Please help me.

Mario

Oct 18 '06 #15

"Carl Daniel [VC++ MVP]" <cp************ *************** **@mvps.org.nos pam>
wrote in message news:uR******** ********@TK2MSF TNGP04.phx.gbl. ..
| "Mario" <ma***@web.dewr ote in message
| news:3B******** *************** ***********@mic rosoft.com...
| Hello,
| >
| I need a program what generates me a blue screen in Windows XP with
..net!
| This should be simple, but how?
|
| To reliably produce a "blue screen", you need only write a device driver
| that deliberately crashes the OS. There's no reliable way to do it from a
| user-mode app, managed or otherwise (there no doubt are ways, but they're
| due to bugs and quirks and cannot be considered reliable).
|
| -cd
|
|

Try this or it's C equivalent, but do it at your own risk:

[ DllImport("kern el32") ]
public static extern IntPtr CreateFileMappi ng (
IntPtr hFile, IntPtr lpAttributes, int flProtect,
int dwMaximumSizeLo w, int dwMaximumSizeHi gh,
String lpName );
static void Main()
{
CreateFileMappi ng(new IntPtr(-1), IntPtr.Zero, 0x00000004, 10, 0,
"Whatever") ;
}

Make sure the size of the filemapping object is larger than the size paging
file (or the sum of all paging files), in above the value 10 means 10 GB.
Running this will BSOD (on XP all SP's), this bug is known for years and
still not solved, quite a "reliable" way to force a BSOD I would say.

Willy.

Oct 18 '06 #16

"Jon Skeet [C# MVP]" <sk***@pobox.co mwrote in message
news:MP******** *************** *@msnews.micros oft.com...
| Kevin Spencer <sp**@uce.govwr ote:
| Just write an unmanaged application that overwrites some system memory.
| Using C, this is easily done using pointers. I know, because it happened
to
| me once or twice many years ago.
|
| This *shouldn't* result in the BSOD - the OS should protect itself
| against malicious programs running in user mode. As another poster
| mentioned, writing a dodgy driver is more likely to get results.
|
| Mind you, on CE it may be easier to provoke a BSOD.
|
| --
| Jon Skeet - <sk***@pobox.co m>
| http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
| If replying to the group, please do not mail me too

Not really, see my reply to Carl.

Willy.
Oct 18 '06 #17
Well, Jon, like I said, it was a LONG time ago! I believe I was running
Windows 3.1 at the time...

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Shooter
http://unclechutney.blogspot.com

A man, a plan, a canal, a palindrome that has.. oh, never mind.

"Jon Skeet [C# MVP]" <sk***@pobox.co mwrote in message
news:MP******** *************** *@msnews.micros oft.com...
Kevin Spencer <sp**@uce.govwr ote:
>Just write an unmanaged application that overwrites some system memory.
Using C, this is easily done using pointers. I know, because it happened
to
me once or twice many years ago.

This *shouldn't* result in the BSOD - the OS should protect itself
against malicious programs running in user mode. As another poster
mentioned, writing a dodgy driver is more likely to get results.

Mind you, on CE it may be easier to provoke a BSOD.

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too

Oct 19 '06 #18

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1587
by: robert | last post by:
hi! there's a line in my Javascript program that makes a change in the appearance of an area of the screen. it is a game program, so there are a cascade of changes after the user makes a move. these are carefully sequenced and timed in a loop which contains the "action" statement document.images.src = offGIF; unfortunately, the *actual* screen updating appears to be 1)
1
2256
by: Ken Allen | last post by:
I am developing a small utility program that must perform a considerable amount of 'background' or 'research' work before it can display any user interface. In general it can take 3-15 seconds to perform all of the work requured before we display any user interface. So we have determined that the utility should have a splash screen to assure the user that the program is executing and will provide results shortly. I should also note that...
0
1013
by: BobAchgill | last post by:
My program has a problems maybe related to running on the wide screen computer. Even when I change the screen resolution to 1024 by 768 I still get the problems. Some times my program window does not show at all though the program is running. And when it does show the window the Flash control windows on my program window are longer than they should be.
10
1752
by: Kenneth Lantrip | last post by:
My question is: Is there a generally accepted way to clear the screen and perhaps move the cursor to a new location (other than newline) for the next printf in standard c? What about ANSI control codes? Are those standard across most platforms? Or is that just for PC/MAC based computers? Anyone know where I can see a list of ANSI codes? Please enlighten me, thanks for your time.
65
8648
by: Leslie Kis-Adam | last post by:
Hi everyone! Does anyone know, if it is possible to clear the screen in ANSI C? If it is,then how? Any help would be appreciated. Laszlo Kis-Adam <dfighter_AT-NOSPAM_freemail.hu
2
1590
by: TomTH | last post by:
I've written a program using a number of forms which runs perfectly on a 14" screen and you know the story....... on a bigger screen it all sits up in the top left hand corner. Ok I can scale it to fit in the middle and still look like a 14" program running in a bigger screen which is fine too. But then when going back to the smaller monitor, its not all there...... Meaning the right hand side and bottom are off the screen until moved to fit...
2
3765
by: E C H (He of too much code) | last post by:
I am very weak in VB.NET, I am using VB.NET 2k5 Express. I have only created one program, and heck it was my first ;-) (URL below if it matters). I am trying to create a program that stays resident, and after a period of inactivity on the computer locks the screen, only it can't use the screen saver interface if I understand it correctly (as the screensaver stuff creates an additional desktop virtual desktop that is unable to interact...
4
29681
by: sophie_newbie | last post by:
Hi, in my program i need to call a couple of functions that do some stuff but they always print their output on screen. But I don't want them to print anything on the screen. Is there any way I can disable it from doing this, like redirect the output to somewhere else? But later on in the program i then need to print other stuff so i'd need to re-enable printing too. Any ideas?
4
6979
by: mike | last post by:
I have the opportunity to rescue a project that uses a mouse to sense the relative position of a machine. The hardware is built...just needs to be programmed. Stop snickering!!! I didn't do it...I just gotta fix it. I need to make some calculations on the measurements and VB6 is my language. Yes, the system mouse will corrupt the measurement, but it's an auditing function and that's acceptable.
0
9719
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9598
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10623
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10371
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10373
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9192
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5683
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3852
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3010
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.