Microsoft KB Archive/814778

= INFO: The Behavior of the GetAdaptersInfo Function is Different From Earlier Versions =

Article ID: 814778

Article Last Modified on 12/27/2003

-

APPLIES TO


 * Microsoft Windows CE .NET 4.2

-





SUMMARY
If no interfaces are available when the GetAdaptersInfo function is used, different versions of the operating system return different error results:
 * The GetAdaptersInfo function is documented to return ERROR_NO_DATA if no interfaces are available.
 * In versions of the operating system earlier than Windows CE version 4.1, ERROR_SUCCESS is returned if no interfaces are available.



MORE INFORMATION
In versions of Windows CE earlier than version 4.1, the GetAdaptersInfo function returned ERROR_SUCCESS and a 0 byte buffer for adapter info structures to reflect situations when no interfaces are available.

The documentation has, however, always indicated that this function returns ERROR_NO_DATA in situations when no interfaces are available.

With Windows CE 4.1 and later versions, the return value from the GetAdapterInfo function has been corrected to match the documented value of ERROR_NO_DATA when no interfaces are available.



Keywords: kbinfo KB814778

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.