Skip to content

Commit

Permalink
Update main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
gmh5225 committed Nov 10, 2023
1 parent f7241e2 commit 111dc8f
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions test/testdrv1/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,24 @@ LibWinDrvDriverUnLoad(__in DRIVER_OBJECT *DriverObject)
// }
// }

DECLSPEC_NOINLINE
EXTERN_C
void
KCETBSOD()
{
__try
{
_asm
{
int 0x2D
}
}
__except (EXCEPTION_EXECUTE_HANDLER)
{
dprintf("except\n");
}
}

EXTERN_C
NTSTATUS
LibWinDrvDriverEntry(__in DRIVER_OBJECT *DriverObject, __in UNICODE_STRING *RegistryPath)
Expand All @@ -43,18 +61,7 @@ LibWinDrvDriverEntry(__in DRIVER_OBJECT *DriverObject, __in UNICODE_STRING *Regi
nop
}
dprintf("hello world2\n");*/

__try
{
_asm
{
int 0x2D
}
}
__except (EXCEPTION_EXECUTE_HANDLER)
{
dprintf("except\n");
}
KCETBSOD();

return -1;
}

0 comments on commit 111dc8f

Please sign in to comment.