Skip to content

Commit

Permalink
Merge branch 'drvexplorer-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanAizek committed Jan 17, 2024
2 parents 051b366 + dd57eef commit 16db9c0
Show file tree
Hide file tree
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
Expand Up @@ -8,6 +8,7 @@
//-----------------------------------------------------------------------------

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

static ULONG refCount;

Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions WinRing0Sys/WinRing0Sys.inf
Original file line number Diff line number Diff line change
Expand Up @@ -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

;*****************************************
Expand All @@ -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]
Expand Down
3 changes: 3 additions & 0 deletions WinRing0Sys/WinRing0Sys.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@
<ClCompile>
<TreatWarningAsError>false</TreatWarningAsError>
</ClCompile>
<Link>
<AdditionalDependencies>Wdmsec.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<Inf Include="WinRing0Sys.inf" />
Expand Down

0 comments on commit 16db9c0

Please sign in to comment.