{
PDEVICE_EXTENSION DeviceExtension = DeviceObject->DeviceExtension;
+ UNREFERENCED_PARAMETER(Dpc);
+ UNREFERENCED_PARAMETER(SystemArgument1);
+ UNREFERENCED_PARAMETER(SystemArgument2);
+
/* Stop the beep */
HalMakeBeep(0);
}
else
{
- /* Otherwise, remove the packet from the queue and relelase the lock */
+ /* Otherwise, remove the packet from the queue and release the lock */
KeRemoveEntryDeviceQueue(&DeviceObject->DeviceQueue,
&Irp->Tail.Overlay.DeviceQueueEntry);
IoReleaseCancelSpinLock(Irp->CancelIrql);
}
else if ((BeepParam->Frequency != 0) && !(BeepParam->Duration))
{
- /* No duration, return imemdiately */
+ /* No duration, return immediately */
Status = STATUS_SUCCESS;
}
else
{
/* Beep successful, queue a DPC to stop it */
Status = STATUS_SUCCESS;
- DueTime.QuadPart = BeepParam->Duration * -10000;
+ DueTime.QuadPart = BeepParam->Duration * -10000LL;
InterlockedIncrement(&DeviceExtension->TimerActive);
KeSetTimer(&DeviceExtension->Timer, DueTime, &DeviceObject->Dpc);
}
UNICODE_STRING DeviceName = RTL_CONSTANT_STRING(L"\\Device\\Beep");
NTSTATUS Status;
+ UNREFERENCED_PARAMETER(RegistryPath);
+
/* Create the device */
Status = IoCreateDevice(DriverObject,
sizeof(DEVICE_EXTENSION),