# xxxInitializeManager

Initializes a service manager by registering it with Natural Access.

#### Prototype

DWORD xxxInitializeManager ( )

#### Return values

SUCCESS or error returned by dispRegisterServiceManager

#### Details

xxxInitializeManager is the only required exported function from a service manager DLL or shared library. It is called when the process is initialized using ctaInitialize. It is the only entry that must be visible to Natural Access in the service manager library.

The three letter prefix of this function must reflect the specific three letter prefix assigned to each service manager by NMS. For example, the ADI manager is found in adimgr.dll and this function is called adiInitializeManager.

xxxInitializeManager does the following:

- Acts as an entry point into the service for service registration

- Declares version numbers for the service manager

- Declares compatibility levels for the service manager

- Declares service manager binding functions

- Acquires the global tracemask pointer managed by ctdaemon (if active)

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