# WM_EndKeySharing

## Syntax

      #include <nitro/wm.h>

      WMErrCode WM_EndKeySharing( WMKeySetBuf* buf );

## Arguments

buf | Pointer to the buffer that stores key information. The entity is the pointer to the `WMDataSharingInfo` structure.

## Return Values

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

## Description

Disables the key sharing feature. This function can be run only when the key sharing feature is enabled by `WM_StartKeySharing`. This function was changed from asynchronous to synchronous.
The `WM_StartKeySharing`, `WM_EndKeySharing`, and `WM_GetKeySet` functions were retained from previous versions to maintain compatibility, but they will be removed in the future. Use the Data Sharing functions instead.

## See Also

`WM_StartKeySharing`, `WM_GetKeySet`

## Revision History

2005/06/07 Changed argument and synchronized function.
2004/10/22 Changed return value types.
2004/07/29 Added to description.
2004/07/23 Initial version.

CONFIDENTIAL