PRB: NDIS.H Header Has Incorrect NdisReadMcaPosInformation

Last reviewed: January 8, 1997
Article ID: Q122172
The information in this article applies to:
  • Microsoft Win32 Device Development 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.


KBCategory: kbnetwork kbtool kbprb
KBSubcategory:
Additional reference words: 3.50 NT DDK KERNEL MODE NDIS MCA


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 8, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.