Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
970 B

  1. /*************************************************************************
  2. *
  3. * beep.c
  4. *
  5. * This module contains routines for managing the Termdd beep channel.
  6. *
  7. * Copyright 1998, Microsoft.
  8. *
  9. *************************************************************************/
  10. /*
  11. * Includes
  12. */
  13. #include <precomp.h>
  14. #pragma hdrstop
  15. #include <ntddbeep.h>
  16. NTSTATUS
  17. IcaDeviceControlBeep(
  18. IN PICA_CHANNEL pChannel,
  19. IN PIRP Irp,
  20. IN PIO_STACK_LOCATION IrpSp
  21. )
  22. {
  23. SD_IOCTL SdIoctl;
  24. NTSTATUS Status;
  25. SdIoctl.IoControlCode = IrpSp->Parameters.DeviceIoControl.IoControlCode;
  26. SdIoctl.InputBuffer = Irp->AssociatedIrp.SystemBuffer;
  27. SdIoctl.InputBufferLength = IrpSp->Parameters.DeviceIoControl.InputBufferLength;
  28. SdIoctl.OutputBuffer = Irp->UserBuffer;
  29. SdIoctl.OutputBufferLength = IrpSp->Parameters.DeviceIoControl.OutputBufferLength;
  30. Status = IcaCallDriver( pChannel, SD$IOCTL, &SdIoctl );
  31. return( Status );
  32. }