[ntdev]communication status of the COM port

Hi,
I am writing a driver that presents itself as a Soft Modem, by using
the actual Modem. So from within my driver I try to get the information from
the real modem by firing all the device Iocontrol IRP’s i.e.
IOCTL_SERIAL_XXX. For getting the communication status of the COM port I use
IOCTL_SERIAL_GET_COMMSTATUS. According to the documentation I should get my
SERIAL_STATUS structure filled.

typedef struct _SERIAL_STATUS {
ULONG Errors;
ULONG HoldReasons;
ULONG AmountInInQueue;
ULONG AmountInOutQueue;
BOOLEAN EofReceived;
BOOLEAN WaitForImmediate;
} SERIAL_STATUS,*PSERIAL_STATUS;

I am only interested in AmountInInQueue and AmountInOutQueue. I get the
AmountInInQueue but the AmountInOutQueue is always 0. Whatever I do.

Is there any other way to get this AmountInOutQueue information.

Thanks in advance.
sanjeev


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com