INFO: The Behavior of the GetAdaptersInfo Function is Different From Earlier Versions (814778)



The information in this article applies to:

  • Microsoft Windows CE .NET Operating System

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.

Modification Type:MinorLast Reviewed:12/27/2003
Keywords:kbinfo KB814778 kbAudDeveloper kbAudOEM