This commit is contained in:
Bill Zissimopoulos
2015-11-21 11:54:58 -08:00
parent 93be122c91
commit d6d98384f2
5 changed files with 58 additions and 34 deletions

View File

@ -23,13 +23,13 @@ DriverEntry(
/* create the file system control device objects */
UNICODE_STRING DeviceName;
RtlInitUnicodeString(&DeviceName, L"\\Device\\" DISK_DEVICE_NAME);
RtlInitUnicodeString(&DeviceName, L"\\Device\\" FSP_FSCTL_DISK_DEVICE_NAME);
Result = IoCreateDevice(DriverObject,
sizeof(FSP_FSCTL_DEVICE_EXTENSION), &DeviceName, FILE_DEVICE_DISK_FILE_SYSTEM, 0, FALSE,
&FspFsctlDiskDeviceObject);
if (!NT_SUCCESS(Result))
FSP_RETURN();
RtlInitUnicodeString(&DeviceName, L"\\Device\\" NET_DEVICE_NAME);
RtlInitUnicodeString(&DeviceName, L"\\Device\\" FSP_FSCTL_NET_DEVICE_NAME);
Result = IoCreateDevice(DriverObject,
sizeof(FSP_FSCTL_DEVICE_EXTENSION), &DeviceName, FILE_DEVICE_NETWORK_FILE_SYSTEM, 0, FALSE,
&FspFsctlNetDeviceObject);

View File

@ -8,10 +8,9 @@
#define WINFSP_SYS_DRIVER_H_INCLUDED
#include <ntifs.h>
#include <fsctl.h>
#define DRIVER_NAME "WinFsp"
#define DISK_DEVICE_NAME "WinFsp.Disk"
#define NET_DEVICE_NAME "WinFsp.Net"
/* DEBUGLOG */
#if DBG