{
PDEVICE_EXTENSION DeviceExtension = DeviceObject->DeviceExtension;
+ UNREFERENCED_PARAMETER(Dpc);
+ UNREFERENCED_PARAMETER(SystemArgument1);
+ UNREFERENCED_PARAMETER(SystemArgument2);
+
/* Stop the beep */
HalMakeBeep(0);
{
/* Beep successful, queue a DPC to stop it */
Status = STATUS_SUCCESS;
- DueTime.QuadPart = BeepParam->Duration * -10000;
+ DueTime.QuadPart = Int32x32To64(BeepParam->Duration, -10000);
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),