PRB: NDIS.H Header Has Incorrect NdisReadMcaPosInformation

Q122172


The information in this article applies to:


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 :


Last Reviewed: March 1, 1999
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.