diff --git a/WinRing0Sys/OpenLibSys.c b/WinRing0Sys/OpenLibSys.c index 0123ffc..dfab1b6 100644 --- a/WinRing0Sys/OpenLibSys.c +++ b/WinRing0Sys/OpenLibSys.c @@ -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 diff --git a/WinRing0Sys/WinRing0Sys.inf b/WinRing0Sys/WinRing0Sys.inf index ad6a3fe..06eac93 100644 --- a/WinRing0Sys/WinRing0Sys.inf +++ b/WinRing0Sys/WinRing0Sys.inf @@ -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] diff --git a/WinRing0Sys/WinRing0Sys.vcxproj b/WinRing0Sys/WinRing0Sys.vcxproj index dfae3b2..77fd23f 100644 --- a/WinRing0Sys/WinRing0Sys.vcxproj +++ b/WinRing0Sys/WinRing0Sys.vcxproj @@ -130,6 +130,9 @@ <ClCompile> <TreatWarningAsError>false</TreatWarningAsError> </ClCompile> + <Link> + <AdditionalDependencies>Wdmsec.lib;%(AdditionalDependencies)</AdditionalDependencies> + </Link> </ItemDefinitionGroup> <ItemGroup> <Inf Include="WinRing0Sys.inf" />