windows-nt/Source/XPSP1/NT/termsrv/drivers/termdd/beep.c

42 lines
970 B
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
/*************************************************************************
*
* beep.c
*
* This module contains routines for managing the Termdd beep channel.
*
* Copyright 1998, Microsoft.
*
*************************************************************************/
/*
* Includes
*/
#include <precomp.h>
#pragma hdrstop
#include <ntddbeep.h>
NTSTATUS
IcaDeviceControlBeep(
IN PICA_CHANNEL pChannel,
IN PIRP Irp,
IN PIO_STACK_LOCATION IrpSp
)
{
SD_IOCTL SdIoctl;
NTSTATUS Status;
SdIoctl.IoControlCode = IrpSp->Parameters.DeviceIoControl.IoControlCode;
SdIoctl.InputBuffer = Irp->AssociatedIrp.SystemBuffer;
SdIoctl.InputBufferLength = IrpSp->Parameters.DeviceIoControl.InputBufferLength;
SdIoctl.OutputBuffer = Irp->UserBuffer;
SdIoctl.OutputBufferLength = IrpSp->Parameters.DeviceIoControl.OutputBufferLength;
Status = IcaCallDriver( pChannel, SD$IOCTL, &SdIoctl );
return( Status );
}