Hello everyone
I'm trying to get more information about the TAPI API call lineOpen and specifically the second parameter dwDeviceID.
The manuals say regarding the second parameter
Identifies the line device to be opened. It can either be a valid device identifier or the value:
LINEMAPPER
This value is used to open a line device in the system that supports the properties specified in lpCallParams. The application can use lineGetID to determine the identifier of the line device that was opened.
Because I can't understand the purpose of this second parameter I'm just hardcoding 6 (randomly selected). This works on 60% of our computers. On the other computers it either does nothing or seems to make the call from a different computer.
I think I need to understand what these devices are a little better. Can anyone recommend a site or book that covers this area, or provide any help?
Thanks
Robert
I'm trying to get more information about the TAPI API call lineOpen and specifically the second parameter dwDeviceID.
Code:
Declare Function lineOpen Lib "TAPI32.DLL" _
(ByVal l_hLineApp As Long, _
ByVal l_dwDeviceID As Long, _
l_lphLine As Long, _
ByVal l_dwAPIVersion As Long, _
ByVal l_dwExtVersion As Long, _
ByVal l_dwCallbackInstance As Long, _
ByVal l_dwPrivileges As Long, _
ByVal l_dwMediaModes As Long, _
struct_lpCallParams As Any) As Long
The manuals say regarding the second parameter
Identifies the line device to be opened. It can either be a valid device identifier or the value:
LINEMAPPER
This value is used to open a line device in the system that supports the properties specified in lpCallParams. The application can use lineGetID to determine the identifier of the line device that was opened.
Because I can't understand the purpose of this second parameter I'm just hardcoding 6 (randomly selected). This works on 60% of our computers. On the other computers it either does nothing or seems to make the call from a different computer.
I think I need to understand what these devices are a little better. Can anyone recommend a site or book that covers this area, or provide any help?
Thanks
Robert