diff options
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/device.c | 10 | ||||
-rw-r--r-- | src/test/main.c | 6 |
2 files changed, 15 insertions, 1 deletions
diff --git a/src/test/device.c b/src/test/device.c index dcd6f1b..7b871a3 100644 --- a/src/test/device.c +++ b/src/test/device.c @@ -13,6 +13,8 @@ static NTSTATUS device_open(DEVICE_OBJECT *device_object, IRP *irp) { NTSTATUS status = STATUS_SUCCESS; + UNREFERENCED_PARAMETER(device_object); + irp->IoStatus.Status = status; irp->IoStatus.Information = 0; IoCompleteRequest(irp, IO_NO_INCREMENT); @@ -31,6 +33,12 @@ static NTSTATUS handle_say_hello( unsigned long out_buf_size, ULONG_PTR *nbwritten) { + UNREFERENCED_PARAMETER(in_buf); + UNREFERENCED_PARAMETER(in_buf_size); + UNREFERENCED_PARAMETER(out_buf); + UNREFERENCED_PARAMETER(out_buf_size); + UNREFERENCED_PARAMETER(nbwritten); + DbgPrint("Hello, world!\n"); return STATUS_SUCCESS; } @@ -72,6 +80,8 @@ static NTSTATUS device_ioctl(DEVICE_OBJECT *device_object, IRP *irp) ioctl_handler handler; NTSTATUS status = STATUS_UNSUCCESSFUL; + UNREFERENCED_PARAMETER(device_object); + irp->IoStatus.Status = status; irp->IoStatus.Information = 0; io_stack_loc = IoGetCurrentIrpStackLocation(irp); diff --git a/src/test/main.c b/src/test/main.c index 22600ee..b3d2b58 100644 --- a/src/test/main.c +++ b/src/test/main.c @@ -9,8 +9,10 @@ #include <ntddk.h> -VOID on_driver_unload(DRIVER_OBJECT *driver_object) +static void on_driver_unload(DRIVER_OBJECT *driver_object) { + UNREFERENCED_PARAMETER(driver_object); + DbgPrint("Unloading test driver...\n"); destroy_devices(); } @@ -19,6 +21,8 @@ NTSTATUS DriverEntry( DRIVER_OBJECT *driver_object, UNICODE_STRING *registry_path) { + UNREFERENCED_PARAMETER(registry_path); + DbgPrint("Loading test driver...\n"); driver_object->DriverUnload = on_driver_unload; return set_up_devices(driver_object); |