# xxxDefineService

Defines a service at initialization time.

#### Prototype

DWORD xxxDefineService (char *svcname)

Argument | Description
svcname | Pointer to the name of a service to be registered with Natural Access.

#### Return values

SUCCESS or error returned by dispRegisterService

#### Details

xxxDefineService is called at initialization time for each service to be registered with the dispatcher. xxxDefineService calls dispRegisterService to perform the following functions:

- Declare the parameter descriptor tables.

- Declare the version numbers for the service.

- Request SPI compatibility level checking for other services whose SPI is called from this service.

- Declare compatibility levels for service.

For more information about this function, refer to Registering services.