# dispSetAsyncOut

Designates a command buffer as being used for asynchronous output.

#### Prototype

DWORD NMSAPI dispSetAsyncOut (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

dispSetAsyncOut is used in service SPIs to control asynchronous output transferred with dispSendCommand. The service SPI passes the buffer to the service manager during a function call, and the service manager uses the buffer after the service API call returns. The service manager then sends the execution results with the Natural Access event.

When Natural Access is running in client/server mode, you must specify that buffers are valid on the server side after the service API calls return.

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

dispSetAsyncIn