# WM_EndDataSharing

## C Specification

      #include <nitro/wm.h>

      WMErrCode WM_EndDataSharing( WMDataSharingInfo*  dsInfo );

## Arguments

dsInfo | Specifies the pointer to the data sharing information structure. Specify the structure using the `WM_StartDataSharing` function.

## Return Values

Returns the results of the `WMErrCode` enumerated type process.

## Description

This function ends data sharing. This function can be executed when data sharing is opened by the `WM_StartDataSharing` function. This is a synchronous function that promptly returns the `WM_ERRCODE_SUCCESS` return value when the process succeeds.
Call this function before `WM_EndMP`. This function does not perform the process that synchronizes parent and child and then ends. Run as needed on parent and child respectively after getting concurrence of terminating on parent and child at the application level. For parents, it is possible to share data in parallel for multiple groups. However, you must call this function for each group and stop each group separately each time.

## See Also

`WM_StartDataSharing`, `WM_StepDataSharing`

## Revision History

10/25/2004 Added to the description
10/22/2004 Changed return value types
08/11/2004 Initial version