driver.c: WIP

This commit is contained in:
Bill Zissimopoulos
2015-11-14 21:48:20 -08:00
parent 075296813a
commit ab2aa36dad
5 changed files with 74 additions and 44 deletions

View File

@ -0,0 +1,24 @@
/**
* @file sys/driver.c
*
* @copyright 2015 Bill Zissimopoulos
*/
#include <sys/driver.h>
DRIVER_INITIALIZE DriverEntry;
#ifdef ALLOC_PRAGMA
#pragma alloc_text(INIT, DriverEntry)
#endif
NTSTATUS
DriverEntry(
_In_ PDRIVER_OBJECT DriverObject,
_In_ PUNICODE_STRING RegistryPath)
{
UNREFERENCED_PARAMETER(DriverObject);
UNREFERENCED_PARAMETER(RegistryPath);
DEBUGLOG("");
return STATUS_NOT_IMPLEMENTED;
}

18
src/sys/driver.h Normal file
View File

@ -0,0 +1,18 @@
/**
* @file sys/driver.h
*
* @copyright 2015 Bill Zissimopoulos
*/
#ifndef WINFSP_SYS_DRIVER_H_INCLUDED
#define WINFSP_SYS_DRIVER_H_INCLUDED
#include <wdm.h>
#if DBG
#define DEBUGLOG(...) DbgPrint(__FUNCTION__ ": " __VA_ARGS__)
#else
#define DEBUGLOG(...) ((void)0)
#endif
#endif