# WMDisconnectCallback

## Definition

  `#include <nitro/wm.h>`

      typedef struct WMDisconnectCallback
      {
          u16         apiid;
          u16         errcode;
          u16     wlCmdID;
          u16     wlResult;
          u16     tryBitmap;
          u16     disconnectedBitmap;
      } WMDisconnectCallback;

## Elements

`apiid` | This is the ID of the API that acts as the source for the callback generation. It is synonymous to the `WMApiid` enumerated type. Here, the value is fixed to `WM_APIID_DISCONNECT`.
`errcode` | This is the result of the asynchronous process. It is synonymous to the `WMErrCode` enumerated type.
`wlCmdID` | If errcode is `WM_ERRCODE_FAILED`, this function will store the ID of the command that was in error in the wireless firmware.
`wlResult` | If errcode is `WM_ERRCODE_FAILED`, this function will store the code was the source of the error in the wireless firmware.
`tryBitmap` | Regardless of errcode, stores the AID bitmap of the device which is specified to disconnect when command is called.
`disconnectedBitmap` | Regardless of errcode, stores the AID bitmap of the device which is disconnected as the result of the command call.

## Description

This structure is passed to the callback function for the `WM_Disconnect` and `WM_DisconnectChildren` functions.

## Revision History

2004/10/26 Initial version.

CONFIDENTIAL