# dispSetAsyncIn

Designates a command buffer as being used for asynchronous input.

#### Prototype

DWORD NMSAPI dispSetAsyncIn (DWORD *size )

Argument | Description
size | Pointer to the buffer size field of the DISP_COMMAND structure.

#### Return values

Return value | Description
SUCCESS |
CTAERR_BAD_ARGUMENT | size is NULL.
CTAERR_NOT_INITIALIZED | Natural Access is not initialized.

#### Details

dispSetAsyncIn is used in service SPIs to control asynchronous inputs transferred with dispSendCommand. When Natural Access is running in client/server mode, you must specify that buffers are valid on the server side after service API calls return. The service SPI passes the buffer to the service manager with the function call. This buffer is used in the service manager after service API calls return. The service manager sends the execution results with the Natural Access event.

Note: Only one buffer in the DISP_COMMAND structure can include an asynchronous flag.

For more information about this function, refer to DISP_COMMAND structure.

#### See also

dispSetAsyncOut