# xxxOpenServiceManager

Called when a service manager is opened on a context.

#### Prototype

DWORD xxxOpenServiceManager (CTAHD ctahd, void *queuecontext, void **mgrcontext)

Argument | Description
ctahd | Context handle.
queuecontext | Pointer to the data structure returned by xxxAttachServiceManager.
mgrcontext | Pointer to the returned manager context.

#### Return values

SUCCESS

#### Details

When xxxOpenServiceManager is called, any resources that the service manager needs to manage are allocated and wait objects are registered with the dispatcher.

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

#### See also

dispRegisterWaitObject, xxxOpenService