WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Articles
Programming Quick Start
32-bit Assembler is Easy
Porting Iczelion tutorials
What is FASM
Hard Drive Recovery
Wiring your own LAN
 
Forum
 

Blue screen code

Slider
Quote Post


Extremely Active Member
******

Group: Moderators
Posts: 313
Member No.: 5004
Joined: 11-May 07


Sponsored Links
I want to study code that causes a blue screen.

I think it's also called a critical error or unhandled exception.

Nothing harmful.

Could someone give me an example ?

If you do not feel comfortable posting, PLEASE consider sending me a private message.

спасибо

gracias

Vielen Dank.

Andy
PMEmail Poster
Top
shoorick
Quote Post


Extremely Active Member
******

Group: Admins
Posts: 2314
Member No.: 160
Joined: 22-June 04


maybe you have to do something bad in driver 8)
PMEmail PosterUsers Website
Top
Slider
Quote Post


Extremely Active Member
******

Group: Moderators
Posts: 313
Member No.: 5004
Joined: 11-May 07


CODE

#include        <ntddk.h>

DRIVER_INITIALIZE DriverEntry;
DRIVER_UNLOAD   DriverUnload;

void  DriverUnload( PDRIVER_OBJECT DriverObject )
{
   DbgPrint("Driver unloading\n");
}

NTSTATUS
   DriverEntry( __in PDRIVER_OBJECT DriverObject, __in PUNICODE_STRING RegistryPath )
{
   DriverObject->DriverUnload = DriverUnload;
   DbgPrint("We are gonna bang bang bust. Now wanna see some blue screen with me ?\n");
   DbgPrint("Some western classical music in the background with rodeo guns blazing\n");
   _asm
   {
       mov eax,0
       mov [eax],0
   }
   return STATUS_SUCCESS; // What the compiler knows we arent returning ever.


This post has been edited by Gunner on Aug 11 2013, 06:58 PM
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll

 

Sponsors
Computer Science

Internet
C/C++
Hardware & PC maintenance

HiEditor

General Discussions
Suggestions/Bug Reports
WinAsm Studio

General Discussions
Suggestions/Bug Reports
WinAsm Studio FAQ
Multilingual User Interface
Add-Ins
Assembly Programming

Main
Newbies
Projects
Custom Controls
Snippets
Announcements & Rules

Announcements

General

Online Degrees - Distance Learning
The Heap
Russian