TSPI_providerCreateLineDevice function (tspi.h)
The TSPI_providerCreateLineDevice function is called by TAPI in response to receipt of a LINE_CREATE message from the service provider, which allows the dynamic creation of a new line device.
Syntax
LONG TSPIAPI TSPI_providerCreateLineDevice(
DWORD_PTR dwTempID,
DWORD dwDeviceID
);
Parameters
dwTempID
The temporary device identifier that the service provider passed to TAPI in the LINE_CREATE message.
dwDeviceID
The device identifier that TAPI assigns to this device if this function succeeds.
Return value
Returns zero if the request succeeds or an error number if an error occurs. Possible return values are:
LINEERR_BADDEVICEID, LINEERR_NOMEM, LINEERR_OPERATIONFAILED.
Remarks
When TAPI receives a LINE_CREATE message from a service provider, it calls this function (it never calls this function spontaneously). TAPI adds 1 to the number of devices of that type, and passes the resulting new, unused device identifier as the dwDeviceID parameter to this function. It also passes in the function the dwParam2 parameter from the LINE_CREATE message as dwTempID.
Older service providers that do not export this function, however, also should not send LINE_CREATE messages, which means TAPI would not try to call this function.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | tspi.h |