Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/drvexplorer/WinRing0 into…
Browse files Browse the repository at this point in the history
… drvexplorer-master

# Conflicts:
#	WinRing0Sys/OpenLibSys.c
#	WinRing0Sys/WinRing0Sys.vcxproj
GermanAizek committed Jan 17, 2024
2 parents 051b366 + 3766455 commit dd57eef
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion WinRing0Sys/OpenLibSys.c
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@
//-----------------------------------------------------------------------------

#include "OpenLibSys.h"
#include <wdmsec.h>

static ULONG refCount;

@@ -30,7 +31,7 @@ NTSTATUS DriverEntry(IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING Registry
&ntDeviceName, // Device name
OLS_TYPE, // Device type
FILE_DEVICE_SECURE_OPEN, // Device characteristics
FALSE,
FALSE, // Not an exclusive device
&SDDL_DEVOBJ_SYS_ALL_ADM_ALL,
NULL, // Device class GUID
&deviceObject); // Returned ptr to Device Object
4 changes: 2 additions & 2 deletions WinRing0Sys/WinRing0Sys.inf
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ WinRing0Sys_Device_CoInstaller_CopyFiles = 11
1 = %DiskName%,,,""

[SourceDisksFiles]
WinRing0Sys.sys = 1,,
WinRing0x64.sys = 1,,
WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll=1 ; make sure the number matches with SourceDisksNames

;*****************************************
@@ -36,7 +36,7 @@ WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll=1 ; make sure the number matches with
CopyFiles=Drivers_Dir

[Drivers_Dir]
WinRing0Sys.sys
WinRing0x64.sys

;-------------- Service installation
[WinRing0Sys_Device.NT.Services]
3 changes: 3 additions & 0 deletions WinRing0Sys/WinRing0Sys.vcxproj
Original file line number Diff line number Diff line change
@@ -130,6 +130,9 @@
<ClCompile>
<TreatWarningAsError>false</TreatWarningAsError>
</ClCompile>
<Link>
<AdditionalDependencies>Wdmsec.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<Inf Include="WinRing0Sys.inf" />

0 comments on commit dd57eef

Please sign in to comment.