Skip to content

Commit

Permalink
NotMyFault initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lzcapp committed Oct 10, 2024
1 parent c86bef0 commit 0f68fcd
Show file tree
Hide file tree
Showing 17 changed files with 2,705 additions and 0 deletions.
31 changes: 31 additions & 0 deletions NotMyFault/exe/IOCTLCMD.H
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
//======================================================================
//
// ioctlcmd.h
//
// Copyright (C) 2002 Mark Russinovich
//
// This file contains driver IOCTLs and definitions shared by the
// driver and the GUI.
//
//======================================================================

//
// Device type
//
#define FILE_DEVICE_MYFAULT 0x00008336


//
// IOCTLS
//
#define IOCTL_BUFFER_OVERFLOW (ULONG) CTL_CODE( FILE_DEVICE_MYFAULT, 0x00, METHOD_BUFFERED, FILE_ANY_ACCESS )
#define IOCTL_WILD_POINTER (ULONG) CTL_CODE( FILE_DEVICE_MYFAULT, 0x01, METHOD_BUFFERED, FILE_ANY_ACCESS )
#define IOCTL_PAGE_FAULT (ULONG) CTL_CODE( FILE_DEVICE_MYFAULT, 0x02, METHOD_BUFFERED, FILE_ANY_ACCESS )
#define IOCTL_DEADLOCK (ULONG) CTL_CODE( FILE_DEVICE_MYFAULT, 0x03, METHOD_BUFFERED, FILE_ANY_ACCESS )
#define IOCTL_TRASH_STACK (ULONG) CTL_CODE( FILE_DEVICE_MYFAULT, 0x04, METHOD_BUFFERED, FILE_ANY_ACCESS )
#define IOCTL_LEAK_PAGED (ULONG) CTL_CODE( FILE_DEVICE_MYFAULT, 0x05, METHOD_BUFFERED, FILE_ANY_ACCESS )
#define IOCTL_IRQL (ULONG) CTL_CODE( FILE_DEVICE_MYFAULT, 0x06, METHOD_BUFFERED, FILE_ANY_ACCESS )
#define IOCTL_HANG (ULONG) CTL_CODE( FILE_DEVICE_MYFAULT, 0x07, METHOD_BUFFERED, FILE_ANY_ACCESS )
#define IOCTL_HANG_IRP (ULONG) CTL_CODE( FILE_DEVICE_MYFAULT, 0x08, METHOD_BUFFERED, FILE_ANY_ACCESS )
#define IOCTL_LEAK_NONPAGED (ULONG) CTL_CODE( FILE_DEVICE_MYFAULT, 0x09, METHOD_BUFFERED, FILE_ANY_ACCESS )
#define IOCTL_BSOD_COLOR (ULONG) CTL_CODE( FILE_DEVICE_MYFAULT, 0x10, METHOD_BUFFERED, FILE_ANY_ACCESS )
6 changes: 6 additions & 0 deletions NotMyFault/exe/NotMyfault.dep
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Microsoft Developer Studio Generated Dependency File, included by NotMyfault.mak

.\notmyfault.c : \
".\IOCTLCMD.H"\
".\notmyfault.h"\

31 changes: 31 additions & 0 deletions NotMyFault/exe/NotMyfault.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.11.35327.3
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "NotMyfault", "NotMyfault.vcxproj", "{7C86ACEC-4A92-4977-8346-F9A6C37896B8}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{7C86ACEC-4A92-4977-8346-F9A6C37896B8}.Debug|x64.ActiveCfg = Debug|x64
{7C86ACEC-4A92-4977-8346-F9A6C37896B8}.Debug|x64.Build.0 = Debug|x64
{7C86ACEC-4A92-4977-8346-F9A6C37896B8}.Debug|x86.ActiveCfg = Debug|Win32
{7C86ACEC-4A92-4977-8346-F9A6C37896B8}.Debug|x86.Build.0 = Debug|Win32
{7C86ACEC-4A92-4977-8346-F9A6C37896B8}.Release|x64.ActiveCfg = Release|x64
{7C86ACEC-4A92-4977-8346-F9A6C37896B8}.Release|x64.Build.0 = Release|x64
{7C86ACEC-4A92-4977-8346-F9A6C37896B8}.Release|x86.ActiveCfg = Release|Win32
{7C86ACEC-4A92-4977-8346-F9A6C37896B8}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {D83E184A-B459-4859-A5B5-60D1FAAF04A1}
EndGlobalSection
EndGlobal
Binary file added NotMyFault/exe/NotMyfault.suo.old
Binary file not shown.
Loading

0 comments on commit 0f68fcd

Please sign in to comment.