C:\WinDDK\7600.16385.1\src\bangbangbust>dir /b
bangbangbust.c
buildandcopy.bat
makefile
sources
C:\WinDDK\7600.16385.1\src\bangbangbust>type *.*
bangbangbust.c
#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 Registry
Path )
{
DriverObject->DriverUnload = DriverUnload;
DbgPrint("we are gonna bang bang bust now wanna blue with me\n"

;
DbgPrint("some western classical music in the background with windows runnin
g rodeo guns blazing\n"

;
_asm
{
mov eax,0
mov [eax],0
}
return STATUS_SUCCESS; // what the compiler knows we arent returning ever
}
buildandcopy.bat
REM doubledot for pushd as arg pushes currentdir
pushd ..
REM invoke xpcheckedbuild environment
@Call C:\WinDDK\7600.16385.1\bin\setenv.bat C:\WinDDK\7600.16385.1\ chk x86 WXP
REM go back to the dir that this batch was launched
popd
REM just to confirm if we are in dir we want list the directory
dir /b
REM we can now build the sources
build -bcZg
Echo install bang bang bust service in a vm with sc or osrloader and start the s
ervice to enjoy blue screen
makefile
!INCLUDE $(NTMAKEENV)\makefile.def
sources
TARGETNAME=bangbangbust
TARGETTYPE=DRIVER
TARGETPATH=obj
SOURCES = bangbangbust.c
C:\WinDDK\7600.16385.1\src\bangbangbust>buildandcopy.bat
C:\WinDDK\7600.16385.1\src\bangbangbust>REM doubledot for pushd as arg pushes cu
rrentdir
C:\WinDDK\7600.16385.1\src\bangbangbust>pushd ..
C:\WinDDK\7600.16385.1\src>REM invoke xpcheckedbuild environment
OACR monitor running already
bangbangbust.c
buildandcopy.bat
makefile
sources
BUILD: Compile and Link for x86
BUILD: Start time: Thu Aug 08 10:32:41 2013
BUILD: Examining c:\winddk\7600.16385.1\src\bangbangbust directory for files to
compile.
c:\winddk\7600.16385.1\src\bangbangbust Auto-cleaning queue for 'root:x86chk
' (1 of 1 file(s) removed)
Invalidating OACR warning log for 'root:x86chk'
BUILD: Compiling and Linking c:\winddk\7600.16385.1\src\bangbangbust directory
Configuring OACR for 'root:x86chk' - <OACR on>
_NT_TARGET_VERSION SET TO WINXP
Compiling - bangbangbust.c
Linking Executable - objchk_wxp_x86\i386\bangbangbust.sys
BUILD: Finish time: Thu Aug 08 10:32:43 2013
BUILD: Done
3 files compiled
1 executable built
install bang bang bust service in a vm with sc or osrloader and start the servic
e to enjoy blue screen
C:\WinDDK\7600.16385.1\src\bangbangbust>