# WM_EndScan

## C Specification

      #include <nitro/wm.h>

      WMErrCode WM_EndScan( WMCallbackFunc callback );

## Description

Ends the scan for a parent

This function is executable only when the WM is in the `SCAN` state. If the return value is `WM_ERRCODE_OPERATING`, a callback is generated after the scan termination process is complete.

## 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_StartScan`, `WM_StartConnect`, `WM_Disconnect`

## Revision History

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