In the Win2K packet driver, the
packon/packoff where removed from:
#include <packon.h>
typedef struct _PACKET_OID_DATA {
ULONG Oid;
ULONG Length;
UCHAR Data[1];
} PACKET_OID_DATA, *PPACKET_OID_DATA;
#include <packoff.h>
causing the following test to erroneously fail:
if (((functionCode == IOCTL_PROTOCOL_SET_OID)
|| (functionCode == IOCTL_PROTOCOL_QUERY_OID))
&&
(irpSp->Parameters.DeviceIoControl.InputBufferLength
== irpSp->Parameters.DeviceIoControl.OutputBufferLength)
&&
(irpSp->Parameters.DeviceIoControl.InputBufferLength
>= sizeof(PACKET_OID_DATA))
&&
(irpSp->Parameters.DeviceIoControl.InputBufferLength
>= sizeof(PACKET_OID_DATA)-1+OidData->Length)) {
because sizeof(PACKET_OID_DATA) == 12
Is there still a packet driver Web site? I forgot the address.
-DH
----------------------------------------------------------------------------------------------------------
Dave Harvey, System Software Solutions, Inc.
617-964-7039, FAX 208-361-9395, xxxxx@syssoftsol.com, http://www.syssoftsol.com
Specialists in fault tolerance, SMP, clusters, and Windows/NT.
----------------------------------------------------------------------------------------------------------
Dave Harvey, System Software Solutions, Inc.
617-964-7039, FAX 208-361-9395, xxxxx@syssoftsol.com, http://www.syssoftsol.com
Specialists in fault tolerance, SMP, clusters, and Windows/NT.</packoff.h></packon.h>