# WM_EndDCF

## C Specification

      #include <nitro/wm.h>

      WMErrCode WM_EndDCF( WMCallbackFunc callback );

## Description

Ends infrastructure mode communications

This function is executable only when the WM is in the `DCF CHILD` state. If the return value for this function is `WM_ERRCODE_OPERATING`, a callback is generated after the disconnection process with the infrastructure mode is complete. The WM returns to the `CHILD` state.

## Arguments

`callback` | The callback function to call when an asynchronous process completes.

## Return Values

Returns the process result as a `WMErrCode` enumerated type.

## See Also

`WM_StartDCF`, `WM_SetDCFData`

## Revision History

10/22/2004 Changed return value types
07/29/2004 Added descriptions
07/23/2004 Initial Version