The TAPICLIENT_ClientInitialize function is called when a new client attaches to the telephony server. This occurs when a client calls the lineInitialize, lineInitializeEx, phoneInitialize, or phoneInitializeEx function for the first time.
Every Client Management DLL must export TAPICLIENT_ClientInitialize.
LONG TAPICLIENT_ClientInitialize(
LPCWSTR szDomain,
LPCWSTR szUserName,
LPCWSTR szMachineName,
LPMANAGEMENTCLIENT phmClient
);
Returns zero if the function succeeds; otherwise, returns one of the following values:
LINEERR_OPERATIONFAILED
LINEERR_NOMEM
The Client Management DLL must fill in the phClient parameter with a handle that it can use to identify the client. The phClient parameter cannot be NULL if TAPICLIENT_ClientInitialize returns success.
lineInitialize, lineInitializeEx, phoneInitialize, phoneInitializeEx