Setting up the Natural Access environment

Application setup for Natural Access consists of the following steps:

Step

Action

1

Initialize Natural Access for the process.

2

Create event queues.

3

Create contexts for each event queue.

4

Open services on each context.


Services are opened on a context by calling ctaOpenServices and passing a context handle and a list of service descriptors. Each service descriptor specifies the name of the service, service manager, and service-specific arguments.

The call to ctaOpenServices is asynchronous and returns immediately. When all services have been opened, the CTAEVN_OPENSERVICES_DONE event is returned to the application. Natural Access supports opening and closing services on an as-needed basis to share resources.

There can be only one open instance of each service per context. Once the IMGT service is opened, the application can make function calls from the IMGT service.

For details on setting up the Natural Access environment, see the Natural Access Developer's Reference Manual.