Bill Weston
asked on
TAPI APIs failing
I am trying to use TAPI 2.0 with I/O completion ports. The following code returns LINEERR_OPERATIONUNAVAIL
DWORD dwNumDevices = 0;
DWORD dwAPIVersion = TAPI_CURRENT_VERSION;
LINEINITIALIZEEXPARAMS parms;
parms.dwTotalSize = sizeof(LINEINITIALIZEEXPAR AMS);
parms.dwOptions = LINEINITIALIZEEXOPTION_USE COMPLETION PORT;
parms.dwCompletionKey = 1;
parms.Handles.hCompletionP ort = comp;
long rc = lineInitializeEx(&myLineAp p,
GetModuleHandle(0),
0,
0,
&dwNumDevices,
&dwAPIVersion,
&parms);
I can successfully use lineInialize, but I'd much rather use I/O completion ports or event handles than the hidden window method of event notification.
Bill Weston
DWORD dwNumDevices = 0;
DWORD dwAPIVersion = TAPI_CURRENT_VERSION;
LINEINITIALIZEEXPARAMS parms;
parms.dwTotalSize = sizeof(LINEINITIALIZEEXPAR
parms.dwOptions = LINEINITIALIZEEXOPTION_USE
parms.dwCompletionKey = 1;
parms.Handles.hCompletionP
long rc = lineInitializeEx(&myLineAp
GetModuleHandle(0),
0,
0,
&dwNumDevices,
&dwAPIVersion,
&parms);
I can successfully use lineInialize, but I'd much rather use I/O completion ports or event handles than the hidden window method of event notification.
Bill Weston
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER