I have written a little MFC application that display some properties about the current association, like the value of the received signal strength indication (RSSI), the service set identifier (SSID) of the BSS, the media access control (MAC) address of the access point and the IP address associated with the WiFi adapter. You will find the application under WiFiStatus.zip...
The steps to connect to an WEP encrypted access point using NDISUIO are: Disassociate from the current service set (OID_802_11_DISASSOCIATE). Set network mode to Ndis802_11Infrastructure (OID_802_11_INFRASTRUCTURE_... Set privacy filter mode to Ndis802_11PrivFilterAcceptAll (OID_802_11_PRIVACY_FILTER). Set the Wired Equivalent Privacy (WEP) keys (OID_802_11_ADD_WEP). Set authentication mode to Ndis802_11AuthModeOpen, Ndis802_11AuthModeShared or Ndis802_11AuthModeAutoSwitch (OID_802_11_AUTHENTICATION_...