# WM_GetSharedDataAddress

## Syntax

      #include <nitro/wm.h>

      u16* WM_GetSharedDataAddress(
              WMDataSharingInfo*  dsInfo ,
      	WMDataSet*          receiveData,
              u16                 aid
      );

## Arguments

dsInfo | Specifies the pointer to the data sharing information structure. Specify the structure using the `WM_StartDataSharing` function.
receiveData | Specifies the pointer to the received data that is the source of extracted data. The receiveData argument must first be initialized using the `WM_StepDataSharing` function.
aid | Specifies the AID terminal that extracts the data. Use a value from 0-15.

## Return Values

Returns the address for data that is received from the specified terminal. Returns a value of NULL if no data is received from the specified terminal.

## Description

This function extracts each terminal's data from within the data structure that is obtained by data sharing. This function returns a value of NULL if the extraction process fails.

## See Also

`WM_StartDataSharing`, `WM_StepDataSharing`

## Revision History

2005/03/02 Added information on allowable range of aid argument.
2004/08/11 Initial version.

CONFIDENTIAL