static NTSTATUS drv_cleanup(PDEVICE_OBJECT device, PIRP irp) { setfilter(NULL); SetRanges(NULL, 0); SetRanges(NULL, 1); #ifndef USE_FIXED_LIST FreeAllocatedBanList(); #endif DestroyNotificationQueue(&g_internal->queue); irp->IoStatus.Status=STATUS_SUCCESS; irp->IoStatus.Information=0; IoCompleteRequest(irp, IO_NO_INCREMENT); return STATUS_SUCCESS; }
static NTSTATUS drv_cleanup(PDEVICE_OBJECT device, PIRP irp) { DbgPrint("pbfilter: > Entering drv_cleanup()\n"); setfilter(NULL); SetRanges(NULL, 0); SetRanges(NULL, 1); DestroyNotificationQueue(&g_internal->queue); irp->IoStatus.Status=STATUS_SUCCESS; irp->IoStatus.Information=0; IoCompleteRequest(irp, IO_NO_INCREMENT); DbgPrint("pbfilter: < Leaving drv_cleanup()\n"); return STATUS_SUCCESS; }