# WM_EndParent

## C Specification

      #include <nitro/wm.h>

      WMErrCode WM_EndParent( WMCallbackFunc callback );

## Description

Ends communication with all connected children

After this function disconnects from all connected children, it returns to the `IDLE` state. If the return value for this function is `WM_ERRCODE_OPERATING`, a callback is generated after the communication termination process is complete.

Unlike `WM_Reset` which deletes all connect information, `WM_EndParent` does not delete the information that existed when the systems were connected.

## Arguments

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

## Return Values

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

## See Also

`WM_SetParentParameter`, `WM_StartParent`

## Revision History

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