Microsoft KB Archive/122172

{|
 * width="100%"|

PRB: NDIS.H Header Has Incorrect NdisReadMcaPosInformation

 * }

Q122172

-

The information in this article applies to:


 * Microsoft Win32 Device Driver Kit (DDK) for Windows NT, version 3.5

-

SYMPTOMS
Attempting to use NdisReadMcaPosInformation in a Windows NT network driver may cause compiler warnings and/or undefined behavior at run time.

CAUSE
The function prototype for NdisReadMcaPosInformation is incorrect as listed in the header file NDIS.H. The third parameter is listed as an IN UINT; it should be an OUT PUINT.

RESOLUTION
Modify NDIS.H so that the function prototype for NdisReadMcaPosInformation is as follows:

VOID NdisReadMcaPosInformation(       OUT PNDIS_STATUS Status,        IN  NDIS_HANDLE WrapperConfigurationContext,        OUT PUINT ChannelNumber,        OUT PNDIS_MCA_POS_DATA McaData        );

STATUS
This behavior is by design.

Additional query words: 3.50 NT DDK KERNEL MODE NDIS MCA

Keywords : kbnetwork

Issue type :

Technology :