Skip to content

Commit f2a99b6

Browse files
committed
Add Win8.1 support
1 parent db97bed commit f2a99b6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

RemoteWriteMonitor/RemoteWriteMonitor/RemoteWriteMonitor.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ EXTERN_C NTSTATUS DriverEntry(_In_ PDRIVER_OBJECT DriverObject,
214214
auto status = STATUS_UNSUCCESSFUL;
215215

216216
DriverObject->DriverUnload = RWMonpDriverUnload;
217-
// DBG_BREAK();
217+
DBG_BREAK();
218218

219219
// Create a directory for a log file and dumped files before initializing
220220
// the Log system
@@ -240,9 +240,12 @@ EXTERN_C NTSTATUS DriverEntry(_In_ PDRIVER_OBJECT DriverObject,
240240
LOG_ERROR("RtlGetVersion failed (%08x)", status);
241241
return status;
242242
}
243-
if (osVersion.dwMajorVersion == 6 || osVersion.dwMinorVersion == 1) {
243+
if (osVersion.dwMajorVersion == 6 && osVersion.dwMinorVersion == 1) {
244244
g_RWMonpNtMapViewOfSection_Index = 0xA8;
245245
g_RWMonpNtWriteVirtualMemory_Index = 0x18F;
246+
} else if (osVersion.dwMajorVersion == 6 && osVersion.dwMinorVersion == 3) {
247+
g_RWMonpNtMapViewOfSection_Index = 0xF6;
248+
g_RWMonpNtWriteVirtualMemory_Index = 0x3;
246249
} else {
247250
LOG_ERROR("Unsupported OS version");
248251
return STATUS_DEVICE_CONFIGURATION_ERROR;

0 commit comments

Comments
 (0)