4 * Copyright 1999 Andreas Mohr
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
33 #include "wine/debug.h"
35 WINE_DEFAULT_DEBUG_CHANNEL(tapi);
38 static const char szCountrylistKey[] =
39 "Software\\Microsoft\\Windows\\CurrentVersion\\Telephony\\Country List";
40 static const char szLocationsKey[] =
41 "Software\\Microsoft\\Windows\\CurrentVersion\\Telephony\\Locations";
42 static const char szCardsKey[] =
43 "Software\\Microsoft\\Windows\\CurrentVersion\\Telephony\\Cards";
46 /***********************************************************************
47 * lineAccept (TAPI32.@)
49 DWORD WINAPI lineAccept(HCALL hCall, LPCSTR lpsUserUserInfo, DWORD dwSize)
51 FIXME("(%p, %s, %d): stub.\n", hCall, lpsUserUserInfo, dwSize);
55 /***********************************************************************
56 * lineAddProviderA (TAPI32.@)
58 DWORD WINAPI lineAddProviderA(LPCSTR lpszProviderName, HWND hwndOwner, LPDWORD lpdwPermanentProviderID)
60 FIXME("(%s, %p, %p): stub.\n", lpszProviderName, hwndOwner, lpdwPermanentProviderID);
61 return LINEERR_OPERATIONFAILED;
64 /***********************************************************************
65 * lineAddProviderW (TAPI32.@)
67 DWORD WINAPI lineAddProviderW(LPCWSTR lpszProviderName, HWND hwndOwner, LPDWORD lpdwPermanentProviderID)
69 FIXME("(%s, %p, %p): stub.\n", wine_dbgstr_w(lpszProviderName), hwndOwner, lpdwPermanentProviderID);
70 return LINEERR_OPERATIONFAILED;
73 /***********************************************************************
74 * lineAddToConference (TAPI32.@)
76 DWORD WINAPI lineAddToConference(HCALL hConfCall, HCALL hConsultCall)
78 FIXME("(%p, %p): stub.\n", hConfCall, hConsultCall);
82 /***********************************************************************
83 * lineAnswer (TAPI32.@)
85 DWORD WINAPI lineAnswer(HCALL hCall, LPCSTR lpsUserUserInfo, DWORD dwSize)
87 FIXME("(%p, %s, %d): stub.\n", hCall, lpsUserUserInfo, dwSize);
91 /***********************************************************************
92 * lineBlindTransfer (TAPI32.@)
94 DWORD WINAPI lineBlindTransferA(HCALL hCall, LPCSTR lpszDestAddress, DWORD dwCountryCode)
96 FIXME("(%p, %s, %08x): stub.\n", hCall, lpszDestAddress, dwCountryCode);
100 /***********************************************************************
101 * lineClose (TAPI32.@)
103 DWORD WINAPI lineClose(HLINE hLine)
105 FIXME("(%p): stub.\n", hLine);
109 /***********************************************************************
110 * lineCompleteCall (TAPI32.@)
112 DWORD WINAPI lineCompleteCall(HCALL hCall, LPDWORD lpdwCompletionID, DWORD dwCompletionMode, DWORD dwMessageID)
114 FIXME("(%p, %p, %08x, %08x): stub.\n", hCall, lpdwCompletionID, dwCompletionMode, dwMessageID);
118 /***********************************************************************
119 * lineCompleteTransfer (TAPI32.@)
121 DWORD WINAPI lineCompleteTransfer(HCALL hCall, HCALL hConsultCall, LPHCALL lphConfCall, DWORD dwTransferMode)
123 FIXME("(%p, %p, %p, %08x): stub.\n", hCall, hConsultCall, lphConfCall, dwTransferMode);
127 /***********************************************************************
128 * lineConfigDialog (TAPI32.@)
130 DWORD WINAPI lineConfigDialogA(DWORD dwDeviceID, HWND hwndOwner, LPCSTR lpszDeviceClass)
132 FIXME("(%08x, %p, %s): stub.\n", dwDeviceID, hwndOwner, lpszDeviceClass);
136 /***********************************************************************
137 * lineConfigDialogEdit (TAPI32.@)
139 DWORD WINAPI lineConfigDialogEditA(DWORD dwDeviceID, HWND hwndOwner, LPCSTR lpszDeviceClass, LPVOID const lpDeviceConfigIn, DWORD dwSize, LPVARSTRING lpDeviceConfigOut)
145 /***********************************************************************
146 * lineConfigProvider (TAPI32.@)
148 DWORD WINAPI lineConfigProvider(HWND hwndOwner, DWORD dwPermanentProviderID)
150 FIXME("(%p, %08x): stub.\n", hwndOwner, dwPermanentProviderID);
154 /***********************************************************************
155 * lineDeallocateCall (TAPI32.@)
157 DWORD WINAPI lineDeallocateCall(HCALL hCall)
159 FIXME("(%p): stub.\n", hCall);
163 /***********************************************************************
164 * lineDevSpecific (TAPI32.@)
166 DWORD WINAPI lineDevSpecific(HLINE hLine, DWORD dwAddressId, HCALL hCall, LPVOID lpParams, DWORD dwSize)
168 FIXME("(%p, %08x, %p, %p, %d): stub.\n", hLine, dwAddressId, hCall, lpParams, dwSize);
172 /***********************************************************************
173 * lineDevSpecificFeature (TAPI32.@)
175 DWORD WINAPI lineDevSpecificFeature(HLINE hLine, DWORD dwFeature, LPVOID lpParams, DWORD dwSize)
177 FIXME("(%p, %08x, %p, %d): stub.\n", hLine, dwFeature, lpParams, dwSize);
181 /***********************************************************************
182 * lineDial (TAPI32.@)
184 DWORD WINAPI lineDialA(HCALL hCall, LPCSTR lpszDestAddress, DWORD dwCountryCode)
186 FIXME("(%p, %s, %08x): stub.\n", hCall, lpszDestAddress, dwCountryCode);
190 /***********************************************************************
191 * lineDrop (TAPI32.@)
193 DWORD WINAPI lineDrop(HCALL hCall, LPCSTR lpsUserUserInfo, DWORD dwSize)
195 FIXME("(%p, %s, %08x): stub.\n", hCall, lpsUserUserInfo, dwSize);
199 /***********************************************************************
200 * lineForward (TAPI32.@)
202 DWORD WINAPI lineForwardA(HLINE hLine, DWORD bAllAddress, DWORD dwAddressID, LPLINEFORWARDLIST lpForwardList, DWORD dwNumRingsNoAnswer, LPHCALL lphConsultCall, LPLINECALLPARAMS lpCallParams)
208 /***********************************************************************
209 * lineGatherDigits (TAPI32.@)
211 DWORD WINAPI lineGatherDigitsA(HCALL hCall, DWORD dwDigitModes, LPSTR lpsDigits, DWORD dwNumDigits, LPCSTR lpszTerminationDigits, DWORD dwFirstDigitTimeout, DWORD dwInterDigitTimeout)
217 /***********************************************************************
218 * lineGenerateDigits (TAPI32.@)
220 DWORD WINAPI lineGenerateDigitsA(HCALL hCall, DWORD dwDigitModes, LPCSTR lpszDigits, DWORD dwDuration)
222 FIXME("(%p, %08x, %s, %d): stub.\n", hCall, dwDigitModes, lpszDigits, dwDuration);
226 /***********************************************************************
227 * lineGenerateTone (TAPI32.@)
229 DWORD WINAPI lineGenerateTone(HCALL hCall, DWORD dwToneMode, DWORD dwDuration, DWORD dwNumTones, LPLINEGENERATETONE lpTones)
231 FIXME("(%p, %08x, %d, %d, %p): stub.\n", hCall, dwToneMode, dwDuration, dwNumTones, lpTones);
235 /***********************************************************************
236 * lineGetAddressCaps (TAPI32.@)
238 DWORD WINAPI lineGetAddressCapsA(HLINEAPP hLineApp, DWORD dwDeviceID, DWORD dwAddressID, DWORD dwAPIVersion, DWORD dwExtVersion, LPLINEADDRESSCAPS lpAddressCaps)
240 FIXME("(%p, %08x, %08x, %08x, %08x, %p): stub.\n", hLineApp, dwDeviceID, dwAddressID, dwAPIVersion, dwExtVersion, lpAddressCaps);
244 /***********************************************************************
245 * lineGetAddressID (TAPI32.@)
247 DWORD WINAPI lineGetAddressIDA(HLINE hLine, LPDWORD lpdwAddressID, DWORD dwAddressMode, LPCSTR lpsAddress, DWORD dwSize)
249 FIXME("%p, %p, %08x, %s, %d): stub.\n", hLine, lpdwAddressID, dwAddressMode, lpsAddress, dwSize);
253 /***********************************************************************
254 * lineGetAddressStatus (TAPI32.@)
256 DWORD WINAPI lineGetAddressStatusA(HLINE hLine, DWORD dwAddressID, LPLINEADDRESSSTATUS lpAddressStatus)
258 FIXME("(%p, %08x, %p): stub.\n", hLine, dwAddressID, lpAddressStatus);
262 /***********************************************************************
263 * lineGetAppPriority (TAPI32.@)
265 DWORD WINAPI lineGetAppPriorityA(LPCSTR lpszAppFilename, DWORD dwMediaMode, LPLINEEXTENSIONID const lpExtensionID, DWORD dwRequestMode, LPVARSTRING lpExtensionName, LPDWORD lpdwPriority)
267 FIXME("(%s, %08x, %p, %08x, %p, %p): stub.\n", lpszAppFilename, dwMediaMode, lpExtensionID, dwRequestMode, lpExtensionName, lpdwPriority);
271 /***********************************************************************
272 * lineGetCallInfo (TAPI32.@)
274 DWORD WINAPI lineGetCallInfoA(HCALL hCall, LPLINECALLINFO lpCallInfo)
276 FIXME("(%p, %p): stub.\n", hCall, lpCallInfo);
280 /***********************************************************************
281 * lineGetCallStatus (TAPI32.@)
283 DWORD WINAPI lineGetCallStatus(HCALL hCall, LPLINECALLSTATUS lpCallStatus)
285 FIXME("(%p, %p): stub.\n", hCall, lpCallStatus);
289 /***********************************************************************
290 * lineGetConfRelatedCalls (TAPI32.@)
292 DWORD WINAPI lineGetConfRelatedCalls(HCALL hCall, LPLINECALLLIST lpCallList)
294 FIXME("(%p, %p): stub.\n", hCall, lpCallList);
298 typedef struct tagTAPI_CountryInfo
303 LPSTR lpSameAreaRule;
304 LPSTR lpLongDistanceRule;
305 LPSTR lpInternationalRule;
308 /***********************************************************************
309 * lineGetCountry (TAPI32.@)
311 DWORD WINAPI lineGetCountryA(DWORD dwCountryID, DWORD dwAPIVersion, LPLINECOUNTRYLIST lpLineCountryList)
313 DWORD dwAvailSize, dwOffset, i, num_countries, max_subkey_len;
314 LPLINECOUNTRYENTRY lpLCE;
318 if(!lpLineCountryList) {
319 TRACE("(%08x, %08x, %p): stub. Returning LINEERR_INVALPOINTER\n",
320 dwCountryID, dwAPIVersion, lpLineCountryList);
321 return LINEERR_INVALPOINTER;
324 TRACE("(%08x, %08x, %p(%d)): stub.\n",
325 dwCountryID, dwAPIVersion, lpLineCountryList,
326 lpLineCountryList->dwTotalSize);
328 if(RegOpenKeyA(HKEY_LOCAL_MACHINE, szCountrylistKey, &hkey)
330 return LINEERR_INIFILECORRUPT;
333 dwAvailSize = lpLineCountryList->dwTotalSize;
334 dwOffset = sizeof (LINECOUNTRYLIST);
336 if(dwAvailSize<dwOffset)
337 return LINEERR_STRUCTURETOOSMALL;
339 memset(lpLineCountryList, 0, dwAvailSize);
341 lpLineCountryList->dwTotalSize = dwAvailSize;
342 lpLineCountryList->dwUsedSize = dwOffset;
343 lpLineCountryList->dwNumCountries = 0;
344 lpLineCountryList->dwCountryListSize = 0;
345 lpLineCountryList->dwCountryListOffset = dwOffset;
347 lpLCE = (LPLINECOUNTRYENTRY)(&lpLineCountryList[1]);
349 if(RegQueryInfoKeyA(hkey, NULL, NULL, NULL, &num_countries, &max_subkey_len,
350 NULL, NULL, NULL, NULL, NULL, NULL) != ERROR_SUCCESS) {
352 return LINEERR_STRUCTURETOOSMALL;
356 dwOffset = sizeof (LINECOUNTRYENTRY);
358 dwOffset += num_countries * sizeof (LINECOUNTRYENTRY);
361 subkey_name = HeapAlloc(GetProcessHeap(), 0, max_subkey_len);
362 for(i = 0; i < num_countries; i++)
364 DWORD len, size, size_int, size_long, size_name, size_same;
367 if(RegEnumKeyA(hkey, i, subkey_name, max_subkey_len) !=
371 if(dwCountryID && (atoi(subkey_name) != dwCountryID))
374 if(RegOpenKeyA(hkey, subkey_name, &hsubkey) != ERROR_SUCCESS)
377 RegQueryValueExA(hsubkey, "InternationalRule", NULL, NULL,
381 RegQueryValueExA(hsubkey, "LongDistanceRule", NULL, NULL,
385 RegQueryValueExA(hsubkey, "Name", NULL, NULL,
389 RegQueryValueExA(hsubkey, "SameAreaRule", NULL, NULL,
393 if(dwAvailSize < (dwOffset+len))
396 RegCloseKey(hsubkey);
402 lpLineCountryList->dwNumCountries++;
403 lpLineCountryList->dwCountryListSize += sizeof (LINECOUNTRYENTRY);
404 lpLineCountryList->dwUsedSize += len + sizeof (LINECOUNTRYENTRY);
409 lpLCE[i].dwCountryID = atoi(subkey_name);
410 size = sizeof(DWORD);
411 RegQueryValueExA(hsubkey, "CountryCode", NULL, NULL,
412 (BYTE*)&lpLCE[i].dwCountryCode, &size);
414 lpLCE[i].dwNextCountryID = 0;
417 lpLCE[i-1].dwNextCountryID = lpLCE[i].dwCountryID;
419 /* add country name */
420 lpLCE[i].dwCountryNameSize = size_name;
421 lpLCE[i].dwCountryNameOffset = dwOffset;
422 RegQueryValueExA(hsubkey, "Name", NULL, NULL,
423 ((LPBYTE)lpLineCountryList)+dwOffset,
425 dwOffset += size_name;
427 /* add Same Area Rule */
428 lpLCE[i].dwSameAreaRuleSize = size_same;
429 lpLCE[i].dwSameAreaRuleOffset = dwOffset;
430 RegQueryValueExA(hsubkey, "SameAreaRule", NULL, NULL,
431 ((LPBYTE)lpLineCountryList)+dwOffset,
433 dwOffset += size_same;
435 /* add Long Distance Rule */
436 lpLCE[i].dwLongDistanceRuleSize = size_long;
437 lpLCE[i].dwLongDistanceRuleOffset = dwOffset;
438 RegQueryValueExA(hsubkey, "LongDistanceRule", NULL, NULL,
439 ((LPBYTE)lpLineCountryList)+dwOffset,
441 dwOffset += size_long;
443 /* add Long Distance Rule */
444 lpLCE[i].dwInternationalRuleSize = size_int;
445 lpLCE[i].dwInternationalRuleOffset = dwOffset;
446 RegQueryValueExA(hsubkey, "InternationalRule", NULL, NULL,
447 ((LPBYTE)lpLineCountryList)+dwOffset,
449 dwOffset += size_int;
450 RegCloseKey(hsubkey);
452 TRACE("Added country %s at %p\n", (LPSTR)lpLineCountryList + lpLCE[i].dwCountryNameOffset,
455 if(dwCountryID) break;
458 lpLineCountryList->dwNeededSize = dwOffset;
460 TRACE("%d available %d required\n", dwAvailSize, dwOffset);
462 HeapFree(GetProcessHeap(), 0, subkey_name);
468 /***********************************************************************
469 * lineGetDevCapsW (TAPI32.@)
471 DWORD WINAPI lineGetDevCapsW(HLINEAPP hLineApp, DWORD dwDeviceID, DWORD dwAPIVersion,
472 DWORD dwExtVersion, LPLINEDEVCAPS lpLineDevCaps)
474 static int warn_once;
477 FIXME("(%p, %08x, %08x, %08x, %p): stub.\n", hLineApp, dwDeviceID, dwAPIVersion,
478 dwExtVersion, lpLineDevCaps);
479 return LINEERR_OPERATIONFAILED;
482 /***********************************************************************
483 * lineGetDevCapsA (TAPI32.@)
485 DWORD WINAPI lineGetDevCapsA(HLINEAPP hLineApp, DWORD dwDeviceID, DWORD dwAPIVersion,
486 DWORD dwExtVersion, LPLINEDEVCAPS lpLineDevCaps)
488 static int warn_once;
491 FIXME("(%p, %08x, %08x, %08x, %p): stub.\n", hLineApp, dwDeviceID, dwAPIVersion,
492 dwExtVersion, lpLineDevCaps);
493 return LINEERR_OPERATIONFAILED;
496 /***********************************************************************
497 * lineGetDevConfig (TAPI32.@)
499 DWORD WINAPI lineGetDevConfigA(DWORD dwDeviceID, LPVARSTRING lpDeviceConfig, LPCSTR lpszDeviceClass)
501 FIXME("(%08x, %p, %s): stub.\n", dwDeviceID, lpDeviceConfig, lpszDeviceClass);
505 /***********************************************************************
506 * lineGetIDW (TAPI32.@)
508 DWORD WINAPI lineGetIDW(HLINE hLine, DWORD dwAddressID, HCALL hCall, DWORD dwSelect,
509 LPVARSTRING lpDeviceID, LPCWSTR lpszDeviceClass)
511 FIXME("(%p, %08x, %p, %08x, %p, %s): stub.\n", hLine, dwAddressID, hCall,
512 dwSelect, lpDeviceID,
513 debugstr_w(lpszDeviceClass));
514 return LINEERR_OPERATIONFAILED;
517 /***********************************************************************
518 * lineGetIDA (TAPI32.@)
520 DWORD WINAPI lineGetIDA(HLINE hLine, DWORD dwAddressID, HCALL hCall, DWORD dwSelect,
521 LPVARSTRING lpDeviceID, LPCSTR lpszDeviceClass)
523 FIXME("(%p, %08x, %p, %08x, %p, %s): stub.\n", hLine, dwAddressID, hCall,
524 dwSelect, lpDeviceID, lpszDeviceClass);
525 return LINEERR_OPERATIONFAILED;
528 /***********************************************************************
529 * lineGetIcon (TAPI32.@)
531 DWORD WINAPI lineGetIconA(DWORD dwDeviceID, LPCSTR lpszDeviceClass, HICON *lphIcon)
533 FIXME("(%08x, %s, %p): stub.\n", dwDeviceID, lpszDeviceClass, lphIcon);
537 /***********************************************************************
538 * lineGetLineDevStatus (TAPI32.@)
540 DWORD WINAPI lineGetLineDevStatusA(HLINE hLine, LPLINEDEVSTATUS lpLineDevStatus)
542 FIXME("(%p, %p): stub.\n", hLine, lpLineDevStatus);
546 /***********************************************************************
547 * lineGetNewCalls (TAPI32.@)
549 DWORD WINAPI lineGetNewCalls(HLINE hLine, DWORD dwAddressID, DWORD dwSelect, LPLINECALLLIST lpCallList)
551 FIXME("(%p, %08x, %08x, %p): stub.\n", hLine, dwAddressID, dwSelect, lpCallList);
555 /***********************************************************************
556 * lineGetNumRings (TAPI32.@)
558 DWORD WINAPI lineGetNumRings(HLINE hLine, DWORD dwAddressID, LPDWORD lpdwNumRings)
560 FIXME("(%p, %08x, %p): stub.\n", hLine, dwAddressID, lpdwNumRings);
564 /***********************************************************************
565 * lineGetProviderListA (TAPI32.@)
567 DWORD WINAPI lineGetProviderListA(DWORD dwAPIVersion, LPLINEPROVIDERLIST lpProviderList)
569 FIXME("(%08x, %p): stub.\n", dwAPIVersion, lpProviderList);
570 return LINEERR_OPERATIONFAILED;
573 /***********************************************************************
574 * lineGetProviderListW (TAPI32.@)
576 DWORD WINAPI lineGetProviderListW(DWORD dwAPIVersion, LPLINEPROVIDERLIST lpProviderList)
578 FIXME("(%08x, %p): stub.\n", dwAPIVersion, lpProviderList);
579 return LINEERR_OPERATIONFAILED;
582 /***********************************************************************
583 * lineGetRequest (TAPI32.@)
585 DWORD WINAPI lineGetRequestA(HLINEAPP hLineApp, DWORD dwRequestMode, LPVOID lpRequestBuffer)
587 FIXME("%p, %08x, %p): stub.\n", hLineApp, dwRequestMode, lpRequestBuffer);
591 /***********************************************************************
592 * lineGetStatusMessages (TAPI32.@)
594 DWORD WINAPI lineGetStatusMessages(HLINE hLine, LPDWORD lpdwLineStatus, LPDWORD lpdwAddressStates)
596 FIXME("(%p, %p, %p): stub.\n", hLine, lpdwLineStatus, lpdwAddressStates);
600 /***********************************************************************
601 * lineGetTranslateCaps (TAPI32.@)
603 * get address translate capabilities. Returns a LINETRANSLATECAPS
606 * +-----------------------+
610 * +-----------------------+
612 * |LocationsListSize |
613 * |LocationsListOffset | -+
614 * |CurrentLocationID | |
615 * +-----------------------+ |
618 * |CardListOffset | -|--+
619 * |CurrentPreferredCardID | | |
620 * +-----------------------+ | |
622 * |LINELOCATIONENTRY #1 | |
624 * +-----------------------+ |
626 * +-----------------------+ |
628 * |LINELOCATIONENTRY | |
630 * +-----------------------+ |
632 * |LINECARDENTRY #1 |
634 * +-----------------------+
636 * +-----------------------+
638 * |LINECARDENTRY #NumCards|
640 * +-----------------------+
641 * | room for strings named|
642 * | in the structures |
644 * +-----------------------+
646 DWORD WINAPI lineGetTranslateCapsA(HLINEAPP hLineApp, DWORD dwAPIVersion,
647 LPLINETRANSLATECAPS lpTranslateCaps)
649 HKEY hkLocations, hkCards, hkCardLocations, hsubkey;
650 int numlocations, numcards;
653 char *loc_key_name = NULL;
654 char *card_key_name = NULL;
660 LPLINELOCATIONENTRY pLocEntry;
661 LPLINECARDENTRY pCardEntry;
663 TRACE("(%p, %08x, %p (tot. size %d)\n", hLineApp, dwAPIVersion,
664 lpTranslateCaps, lpTranslateCaps->dwTotalSize );
665 if( lpTranslateCaps->dwTotalSize < sizeof(LINETRANSLATECAPS))
666 return LINEERR_STRUCTURETOOSMALL;
667 if( RegCreateKeyA(HKEY_LOCAL_MACHINE, szLocationsKey, &hkLocations)
669 ERR("unexpected registry error 1.\n");
670 return LINEERR_INIFILECORRUPT;
672 lendword = sizeof( DWORD);
673 if( RegQueryValueExA( hkLocations, "CurrentID", NULL, NULL,
674 (LPBYTE) ¤tid, &lendword) != ERROR_SUCCESS )
675 currentid = -1; /* change this later */
676 if(RegQueryInfoKeyA(hkLocations, NULL, NULL, NULL, NULL, &maxlockeylen,
677 NULL, NULL, NULL, NULL, NULL, NULL) != ERROR_SUCCESS) {
678 RegCloseKey(hkLocations);
679 ERR("unexpected registry error 2.\n");
680 return LINEERR_INIFILECORRUPT;
683 if( maxlockeylen < 10)
684 maxlockeylen = 10; /* need this also if there is no key */
685 loc_key_name = HeapAlloc( GetProcessHeap(), 0, maxlockeylen);
686 /* first time through: calculate needed space */
690 while( RegEnumKeyA(hkLocations, i, loc_key_name, maxlockeylen)
694 if( strncasecmp(loc_key_name, "location", 8) ||
695 (RegOpenKeyA(hkLocations, loc_key_name, &hsubkey)
699 length += sizeof(LINELOCATIONENTRY);
700 RegQueryValueExA(hsubkey, "Name",NULL,NULL,NULL,&size_val);
702 RegQueryValueExA(hsubkey, "AreaCode",NULL,NULL,NULL,&size_val);
704 RegQueryValueExA(hsubkey, "OutsideAccess",NULL,NULL,NULL,&size_val);
706 RegQueryValueExA(hsubkey, "LongDistanceAccess",NULL,NULL,NULL,&size_val);
708 RegQueryValueExA(hsubkey, "DisableCallWaiting",NULL,NULL,NULL,&size_val);
710 /* fixme: what about TollPrefixList???? */
711 RegCloseKey(hsubkey);
713 if(numlocations == 0) {
714 /* add one location */
715 if( RegCreateKeyA( hkLocations, "Location1", &hsubkey)
720 length += sizeof(LINELOCATIONENTRY) + 20 ;
721 RegSetValueExA( hsubkey, "AreaCode", 0, REG_SZ, (const BYTE *)"010", 4);
722 GetLocaleInfoA( LOCALE_SYSTEM_DEFAULT, LOCALE_ICOUNTRY, buf, 8);
724 RegSetValueExA( hsubkey, "Country", 0, REG_DWORD, (LPBYTE)&dwval,
726 RegSetValueExA( hsubkey, "DisableCallWaiting", 0, REG_SZ, (const BYTE *)"", 1);
728 RegSetValueExA( hsubkey, "Flags", 0, REG_DWORD, (LPBYTE)&dwval,
730 RegSetValueExA( hsubkey, "LongDistanceAccess", 0, REG_SZ, (const BYTE *)"", 1);
731 RegSetValueExA( hsubkey, "Name", 0, REG_SZ, (const BYTE *)"New Location", 13);
732 RegSetValueExA( hsubkey, "OutsideAccess", 0, REG_SZ, (const BYTE *)"", 1);
733 RegCloseKey(hsubkey);
735 RegSetValueExA( hkLocations, "CurrentID", 0, REG_DWORD,
736 (LPBYTE)&dwval, sizeof(DWORD));
738 RegSetValueExA( hkLocations, "NextID", 0, REG_DWORD, (LPBYTE)&dwval,
742 /* do the card list */
744 if( RegCreateKeyA(HKEY_CURRENT_USER, szCardsKey, &hkCards)
746 if(RegQueryInfoKeyA(hkCards, NULL, NULL, NULL, NULL, &maxcardkeylen,
747 NULL, NULL, NULL, NULL, NULL, NULL) == ERROR_SUCCESS) {
749 if( maxcardkeylen < 6) maxcardkeylen = 6;
750 card_key_name = HeapAlloc(GetProcessHeap(), 0, maxcardkeylen);
752 while( RegEnumKeyA(hkCards, i, card_key_name, maxcardkeylen) ==
756 if( strncasecmp(card_key_name, "card", 4) || ERROR_SUCCESS !=
757 (RegOpenKeyA(hkCards, card_key_name, &hsubkey) ))
760 length += sizeof(LINECARDENTRY);
761 RegQueryValueExA(hsubkey, "Name",NULL,NULL,NULL,&size_val);
763 RegQueryValueExA(hsubkey, "LocalRule",NULL,NULL,NULL,&size_val);
765 RegQueryValueExA(hsubkey, "LDRule",NULL,NULL,NULL,&size_val);
767 RegQueryValueExA(hsubkey, "InternationalRule",NULL,NULL,NULL,
770 RegCloseKey(hsubkey);
773 /* add one card (direct call) */
775 ERROR_SUCCESS == RegCreateKeyA( hkCards, "Card1", &hsubkey)) {
778 length += sizeof(LINECARDENTRY) + 22 ;
779 RegSetValueExA( hsubkey, "Name", 0, REG_SZ, (const BYTE *)"None (Direct Call)", 19);
781 RegSetValueExA( hsubkey, "Flags", 0, REG_DWORD, (LPBYTE)&dwval,
783 RegSetValueExA( hsubkey, "InternationalRule", 0, REG_SZ, (const BYTE *)"", 1);
784 RegSetValueExA( hsubkey, "LDRule", 0, REG_SZ, (const BYTE *)"", 1);
785 RegSetValueExA( hsubkey, "LocalRule", 0, REG_SZ, (const BYTE *)"", 1);
786 RegCloseKey(hsubkey);
788 RegSetValueExA( hkCards, "NextID", 0, REG_DWORD, (LPBYTE)&dwval,
791 } else hkCards = 0; /* should really fail */
792 /* check if sufficient room is available */
793 lpTranslateCaps->dwNeededSize = sizeof(LINETRANSLATECAPS) + length;
794 if ( lpTranslateCaps->dwNeededSize > lpTranslateCaps->dwTotalSize ) {
795 RegCloseKey( hkLocations);
796 if( hkCards) RegCloseKey( hkCards);
797 HeapFree(GetProcessHeap(), 0, loc_key_name);
798 HeapFree(GetProcessHeap(), 0, card_key_name);
799 lpTranslateCaps->dwUsedSize = sizeof(LINETRANSLATECAPS);
800 TRACE("Insufficient space: total %d needed %d used %d\n",
801 lpTranslateCaps->dwTotalSize,
802 lpTranslateCaps->dwNeededSize,
803 lpTranslateCaps->dwUsedSize);
806 /* fill in the LINETRANSLATECAPS structure */
807 lpTranslateCaps->dwUsedSize = lpTranslateCaps->dwNeededSize;
808 lpTranslateCaps->dwNumLocations = numlocations;
809 lpTranslateCaps->dwLocationListSize = sizeof(LINELOCATIONENTRY) *
810 lpTranslateCaps->dwNumLocations;
811 lpTranslateCaps->dwLocationListOffset = sizeof(LINETRANSLATECAPS);
812 lpTranslateCaps->dwCurrentLocationID = currentid;
813 lpTranslateCaps->dwNumCards = numcards;
814 lpTranslateCaps->dwCardListSize = sizeof(LINECARDENTRY) *
815 lpTranslateCaps->dwNumCards;
816 lpTranslateCaps->dwCardListOffset = lpTranslateCaps->dwLocationListOffset +
817 lpTranslateCaps->dwLocationListSize;
818 lpTranslateCaps->dwCurrentPreferredCardID = 0;
819 /* this is where the strings will be stored */
820 strptr = ((LPBYTE) lpTranslateCaps) +
821 lpTranslateCaps->dwCardListOffset + lpTranslateCaps->dwCardListSize;
822 pLocEntry = (LPLINELOCATIONENTRY) (lpTranslateCaps + 1);
823 /* key with Preferred CardIDs */
824 if( RegOpenKeyA(HKEY_CURRENT_USER, szLocationsKey, &hkCardLocations)
827 /* second time through all locations */
829 while(RegEnumKeyA(hkLocations, i, loc_key_name, maxlockeylen)
833 if( strncasecmp(loc_key_name, "location", 8) ||
834 (RegOpenKeyA(hkLocations, loc_key_name, &hsubkey)
837 size_val=sizeof(DWORD);
838 if( RegQueryValueExA(hsubkey, "ID",NULL, NULL,
839 (LPBYTE) &(pLocEntry->dwPermanentLocationID), &size_val) !=
841 pLocEntry->dwPermanentLocationID = atoi( loc_key_name + 8);
843 RegQueryValueExA(hsubkey, "Name",NULL,NULL, strptr, &size_val);
844 pLocEntry->dwLocationNameSize = size_val;
845 pLocEntry->dwLocationNameOffset = strptr - (LPBYTE) lpTranslateCaps;
849 RegQueryValueExA(hsubkey, "AreaCode",NULL,NULL, strptr, &size_val);
850 pLocEntry->dwCityCodeSize = size_val;
851 pLocEntry->dwCityCodeOffset = strptr - (LPBYTE) lpTranslateCaps;
855 RegQueryValueExA(hsubkey, "OutsideAccess",NULL,NULL, strptr, &size_val);
856 pLocEntry->dwLocalAccessCodeSize = size_val;
857 pLocEntry->dwLocalAccessCodeOffset = strptr - (LPBYTE) lpTranslateCaps;
860 RegQueryValueExA(hsubkey, "LongDistanceAccess",NULL,NULL, strptr,
862 pLocEntry->dwLongDistanceAccessCodeSize= size_val;
863 pLocEntry->dwLongDistanceAccessCodeOffset= strptr -
864 (LPBYTE) lpTranslateCaps;
867 RegQueryValueExA(hsubkey, "DisableCallWaiting",NULL,NULL, strptr,
869 pLocEntry->dwCancelCallWaitingSize= size_val;
870 pLocEntry->dwCancelCallWaitingOffset= strptr - (LPBYTE) lpTranslateCaps;
873 pLocEntry->dwTollPrefixListSize = 0; /* FIXME */
874 pLocEntry->dwTollPrefixListOffset = 0; /* FIXME */
876 size_val=sizeof(DWORD);
877 RegQueryValueExA(hsubkey, "Country",NULL,NULL,
878 (LPBYTE) &(pLocEntry->dwCountryCode), &size_val);
879 pLocEntry->dwCountryID = pLocEntry->dwCountryCode; /* FIXME */
880 RegQueryValueExA(hsubkey, "Flags",NULL,NULL,
881 (LPBYTE) &(pLocEntry->dwOptions), &size_val);
882 RegCloseKey(hsubkey);
883 /* get preferred cardid */
884 pLocEntry->dwPreferredCardID = 0;
885 if ( hkCardLocations) {
886 size_val=sizeof(DWORD);
887 if(RegOpenKeyA(hkCardLocations, loc_key_name, &hsubkey) ==
889 RegQueryValueExA(hsubkey, "CallingCard",NULL,NULL,
890 (LPBYTE) &(pLocEntry->dwPreferredCardID), &size_val);
891 RegCloseKey(hsubkey);
895 /* make sure there is a currentID */
897 currentid = pLocEntry->dwPermanentLocationID;
898 lpTranslateCaps->dwCurrentLocationID = currentid;
900 if(pLocEntry->dwPermanentLocationID == currentid )
901 lpTranslateCaps->dwCurrentPreferredCardID =
902 pLocEntry->dwPreferredCardID;
903 TRACE("added: ID %d %s CountryCode %d CityCode %s CardID %d "
904 "LocalAccess: %s LongDistanceAccess: %s CountryID %d "
905 "Options %d CancelCallWait %s\n",
906 pLocEntry->dwPermanentLocationID,
907 debugstr_a( (char*)lpTranslateCaps + pLocEntry->dwLocationNameOffset),
908 pLocEntry->dwCountryCode,
909 debugstr_a( (char*)lpTranslateCaps + pLocEntry->dwCityCodeOffset),
910 pLocEntry->dwPreferredCardID,
911 debugstr_a( (char*)lpTranslateCaps + pLocEntry->dwLocalAccessCodeOffset),
912 debugstr_a( (char*)lpTranslateCaps + pLocEntry->dwLongDistanceAccessCodeOffset),
913 pLocEntry->dwCountryID,
914 pLocEntry->dwOptions,
915 debugstr_a( (char*)lpTranslateCaps + pLocEntry->dwCancelCallWaitingOffset));
918 pCardEntry= (LPLINECARDENTRY) pLocEntry;
919 /* do the card list */
922 while( RegEnumKeyA(hkCards, i, card_key_name, maxcardkeylen) ==
926 if( strncasecmp(card_key_name, "card", 4) ||
927 (RegOpenKeyA(hkCards, card_key_name, &hsubkey) != ERROR_SUCCESS))
929 size_val=sizeof(DWORD);
930 if( RegQueryValueExA(hsubkey, "ID",NULL, NULL,
931 (LPBYTE) &(pCardEntry->dwPermanentCardID), &size_val) !=
933 pCardEntry->dwPermanentCardID= atoi( card_key_name + 4);
935 RegQueryValueExA(hsubkey, "Name",NULL,NULL, strptr, &size_val);
936 pCardEntry->dwCardNameSize = size_val;
937 pCardEntry->dwCardNameOffset = strptr - (LPBYTE) lpTranslateCaps;
939 pCardEntry->dwCardNumberDigits = 1; /* FIXME */
941 RegQueryValueExA(hsubkey, "LocalRule",NULL,NULL, strptr, &size_val);
942 pCardEntry->dwSameAreaRuleSize= size_val;
943 pCardEntry->dwSameAreaRuleOffset= strptr - (LPBYTE) lpTranslateCaps;
946 RegQueryValueExA(hsubkey, "LDRule",NULL,NULL, strptr, &size_val);
947 pCardEntry->dwLongDistanceRuleSize = size_val;
948 pCardEntry->dwLongDistanceRuleOffset = strptr - (LPBYTE) lpTranslateCaps;
951 RegQueryValueExA(hsubkey, "InternationalRule",NULL,NULL, strptr,
953 pCardEntry->dwInternationalRuleSize = size_val;
954 pCardEntry->dwInternationalRuleOffset = strptr -
955 (LPBYTE) lpTranslateCaps;
957 size_val=sizeof(DWORD);
958 RegQueryValueExA(hsubkey, "Flags",NULL, NULL,
959 (LPBYTE) &(pCardEntry->dwOptions), &size_val);
960 TRACE( "added card: ID %d name %s SameArea %s LongDistance %s International %s Options 0x%x\n",
961 pCardEntry->dwPermanentCardID,
962 debugstr_a( (char*)lpTranslateCaps + pCardEntry->dwCardNameOffset),
963 debugstr_a( (char*)lpTranslateCaps + pCardEntry->dwSameAreaRuleOffset),
964 debugstr_a( (char*)lpTranslateCaps + pCardEntry->dwLongDistanceRuleOffset),
965 debugstr_a( (char*)lpTranslateCaps + pCardEntry->dwInternationalRuleOffset),
966 pCardEntry->dwOptions);
972 if(hkLocations) RegCloseKey(hkLocations);
973 if(hkCards) RegCloseKey(hkCards);
974 if(hkCardLocations) RegCloseKey(hkCardLocations);
975 HeapFree(GetProcessHeap(), 0, loc_key_name);
976 HeapFree(GetProcessHeap(), 0, card_key_name);
977 TRACE(" returning success tot %d needed %d used %d\n",
978 lpTranslateCaps->dwTotalSize,
979 lpTranslateCaps->dwNeededSize,
980 lpTranslateCaps->dwUsedSize );
981 return 0; /* success */
984 /***********************************************************************
985 * lineHandoff (TAPI32.@)
987 DWORD WINAPI lineHandoffA(HCALL hCall, LPCSTR lpszFileName, DWORD dwMediaMode)
989 FIXME("(%p, %s, %08x): stub.\n", hCall, lpszFileName, dwMediaMode);
993 /***********************************************************************
994 * lineHold (TAPI32.@)
996 DWORD WINAPI lineHold(HCALL hCall)
998 FIXME("(%p): stub.\n", hCall);
1002 /***********************************************************************
1003 * lineInitialize (TAPI32.@)
1005 DWORD WINAPI lineInitialize(
1006 LPHLINEAPP lphLineApp,
1007 HINSTANCE hInstance,
1008 LINECALLBACK lpfnCallback,
1010 LPDWORD lpdwNumDevs)
1012 FIXME("(%p, %p, %p, %s, %p): stub.\n", lphLineApp, hInstance,
1013 lpfnCallback, debugstr_a(lpszAppName), lpdwNumDevs);
1017 /***********************************************************************
1018 * lineInitializeExA (TAPI32.@)
1020 LONG WINAPI lineInitializeExA(LPHLINEAPP lphLineApp, HINSTANCE hInstance, LINECALLBACK lpfnCallback, LPCSTR lpszFriendlyAppName, LPDWORD lpdwNumDevs, LPDWORD lpdwAPIVersion, LPLINEINITIALIZEEXPARAMS lpLineInitializeExParams)
1022 FIXME("(%p, %p, %p, %s, %p, %p, %p): stub.\n", lphLineApp, hInstance,
1023 lpfnCallback, debugstr_a(lpszFriendlyAppName), lpdwNumDevs, lpdwAPIVersion, lpLineInitializeExParams);
1027 /***********************************************************************
1028 * lineMakeCallW (TAPI32.@)
1030 DWORD WINAPI lineMakeCallW(HLINE hLine, LPHCALL lphCall, LPCWSTR lpszDestAddress,
1031 DWORD dwCountryCode, LPLINECALLPARAMS lpCallParams)
1033 FIXME("(%p, %p, %s, %08x, %p): stub.\n", hLine, lphCall, debugstr_w(lpszDestAddress),
1034 dwCountryCode, lpCallParams);
1035 return LINEERR_OPERATIONFAILED;
1038 /***********************************************************************
1039 * lineMakeCallA (TAPI32.@)
1041 DWORD WINAPI lineMakeCallA(HLINE hLine, LPHCALL lphCall, LPCSTR lpszDestAddress,
1042 DWORD dwCountryCode, LPLINECALLPARAMS lpCallParams)
1044 FIXME("(%p, %p, %s, %08x, %p): stub.\n", hLine, lphCall, lpszDestAddress,
1045 dwCountryCode, lpCallParams);
1046 return LINEERR_OPERATIONFAILED;
1049 /***********************************************************************
1050 * lineMonitorDigits (TAPI32.@)
1052 DWORD WINAPI lineMonitorDigits(HCALL hCall, DWORD dwDigitModes)
1054 FIXME("(%p, %08x): stub.\n", hCall, dwDigitModes);
1058 /***********************************************************************
1059 * lineMonitorMedia (TAPI32.@)
1061 DWORD WINAPI lineMonitorMedia(HCALL hCall, DWORD dwMediaModes)
1063 FIXME("(%p, %08x): stub.\n", hCall, dwMediaModes);
1067 /***********************************************************************
1068 * lineMonitorTones (TAPI32.@)
1070 DWORD WINAPI lineMonitorTones(HCALL hCall, LPLINEMONITORTONE lpToneList, DWORD dwNumEntries)
1072 FIXME("(%p, %p, %08x): stub.\n", hCall, lpToneList, dwNumEntries);
1076 /***********************************************************************
1077 * lineNegotiateAPIVersion (TAPI32.@)
1079 DWORD WINAPI lineNegotiateAPIVersion(
1082 DWORD dwAPILowVersion,
1083 DWORD dwAPIHighVersion,
1084 LPDWORD lpdwAPIVersion,
1085 LPLINEEXTENSIONID lpExtensionID
1088 static int warn_once;
1091 FIXME("(%p, %d, %d, %d, %p, %p): stub.\n", hLineApp, dwDeviceID,
1092 dwAPILowVersion, dwAPIHighVersion, lpdwAPIVersion, lpExtensionID);
1093 *lpdwAPIVersion = dwAPIHighVersion;
1097 /***********************************************************************
1098 * lineNegotiateExtVersion (TAPI32.@)
1100 DWORD WINAPI lineNegotiateExtVersion(HLINEAPP hLineApp, DWORD dwDeviceID, DWORD dwAPIVersion, DWORD dwExtLowVersion, DWORD dwExtHighVersion, LPDWORD lpdwExtVersion)
1106 /***********************************************************************
1107 * lineOpen (TAPI32.@)
1109 DWORD WINAPI lineOpenA(HLINEAPP hLineApp, DWORD dwDeviceID, LPHLINE lphLine, DWORD dwAPIVersion, DWORD dwExtVersion, DWORD dwCallbackInstance, DWORD dwPrivileges, DWORD dwMediaModes, LPLINECALLPARAMS lpCallParams)
1115 /***********************************************************************
1116 * linePark (TAPI32.@)
1118 DWORD WINAPI lineParkA(HCALL hCall, DWORD dwParkMode, LPCSTR lpszDirAddress, LPVARSTRING lpNonDirAddress)
1120 FIXME("(%p, %08x, %s, %p): stub.\n", hCall, dwParkMode, lpszDirAddress, lpNonDirAddress);
1124 /***********************************************************************
1125 * linePickup (TAPI32.@)
1127 DWORD WINAPI linePickupA(HLINE hLine, DWORD dwAddressID, LPHCALL lphCall, LPCSTR lpszDestAddress, LPCSTR lpszGroupID)
1129 FIXME("(%p, %08x, %p, %s, %s): stub.\n", hLine, dwAddressID, lphCall, lpszDestAddress, lpszGroupID);
1133 /***********************************************************************
1134 * linePrepareAddToConference (TAPI32.@)
1136 DWORD WINAPI linePrepareAddToConferenceA(HCALL hConfCall, LPHCALL lphConsultCall, LPLINECALLPARAMS lpCallParams)
1138 FIXME("(%p, %p, %p): stub.\n", hConfCall, lphConsultCall, lpCallParams);
1142 /***********************************************************************
1143 * lineRedirect (TAPI32.@)
1145 DWORD WINAPI lineRedirectA(
1147 LPCSTR lpszDestAddress,
1148 DWORD dwCountryCode) {
1154 /***********************************************************************
1155 * lineRegisterRequestRecipient (TAPI32.@)
1157 DWORD WINAPI lineRegisterRequestRecipient(HLINEAPP hLineApp, DWORD dwRegistrationInstance, DWORD dwRequestMode, DWORD dwEnable)
1159 FIXME("(%p, %08x, %08x, %08x): stub.\n", hLineApp, dwRegistrationInstance, dwRequestMode, dwEnable);
1163 /***********************************************************************
1164 * lineReleaseUserUserInfo (TAPI32.@)
1166 DWORD WINAPI lineReleaseUserUserInfo(HCALL hCall)
1168 FIXME("(%p): stub.\n", hCall);
1172 /***********************************************************************
1173 * lineRemoveFromConference (TAPI32.@)
1175 DWORD WINAPI lineRemoveFromConference(HCALL hCall)
1177 FIXME("(%p): stub.\n", hCall);
1181 /***********************************************************************
1182 * lineRemoveProvider (TAPI32.@)
1184 DWORD WINAPI lineRemoveProvider(DWORD dwPermanentProviderID, HWND hwndOwner)
1186 FIXME("(%08x, %p): stub.\n", dwPermanentProviderID, hwndOwner);
1190 /***********************************************************************
1191 * lineSecureCall (TAPI32.@)
1193 DWORD WINAPI lineSecureCall(HCALL hCall)
1195 FIXME("(%p): stub.\n", hCall);
1199 /***********************************************************************
1200 * lineSendUserUserInfo (TAPI32.@)
1202 DWORD WINAPI lineSendUserUserInfo(HCALL hCall, LPCSTR lpsUserUserInfo, DWORD dwSize)
1204 FIXME("(%p, %s, %08x): stub.\n", hCall, lpsUserUserInfo, dwSize);
1208 /***********************************************************************
1209 * lineSetAppPriority (TAPI32.@)
1211 DWORD WINAPI lineSetAppPriorityA(LPCSTR lpszAppFilename, DWORD dwMediaMode, LPLINEEXTENSIONID const lpExtensionID, DWORD dwRequestMode, LPCSTR lpszExtensionName, DWORD dwPriority)
1213 FIXME("(%s, %08x, %p, %08x, %s, %08x): stub.\n", lpszAppFilename, dwMediaMode, lpExtensionID, dwRequestMode, lpszExtensionName, dwPriority);
1217 /***********************************************************************
1218 * lineSetAppSpecific (TAPI32.@)
1220 DWORD WINAPI lineSetAppSpecific(HCALL hCall, DWORD dwAppSpecific)
1222 FIXME("(%p, %08x): stub.\n", hCall, dwAppSpecific);
1226 /***********************************************************************
1227 * lineSetCallParams (TAPI32.@)
1229 DWORD WINAPI lineSetCallParams(HCALL hCall, DWORD dwBearerMode, DWORD dwMinRate, DWORD dwMaxRate, LPLINEDIALPARAMS lpDialParams)
1231 FIXME("(%p, %08x, %08x, %08x, %p): stub.\n", hCall, dwBearerMode, dwMinRate, dwMaxRate, lpDialParams);
1235 /***********************************************************************
1236 * lineSetCallPrivilege (TAPI32.@)
1238 DWORD WINAPI lineSetCallPrivilege(HCALL hCall, DWORD dwCallPrivilege)
1240 FIXME("(%p, %08x): stub.\n", hCall, dwCallPrivilege);
1244 /***********************************************************************
1245 * lineSetCurrentLocation (TAPI32.@)
1247 DWORD WINAPI lineSetCurrentLocation(HLINEAPP hLineApp, DWORD dwLocation)
1249 FIXME("(%p, %08x): stub.\n", hLineApp, dwLocation);
1253 /***********************************************************************
1254 * lineSetDevConfig (TAPI32.@)
1256 DWORD WINAPI lineSetDevConfigA(DWORD dwDeviceID, LPVOID lpDeviceConfig, DWORD dwSize, LPCSTR lpszDeviceClass)
1258 FIXME("(%08x, %p, %08x, %s): stub.\n", dwDeviceID, lpDeviceConfig, dwSize, lpszDeviceClass);
1262 /***********************************************************************
1263 * lineSetMediaControl (TAPI32.@)
1265 DWORD WINAPI lineSetMediaControl(
1270 LPLINEMEDIACONTROLDIGIT const lpDigitList,
1271 DWORD dwDigitNumEntries,
1272 LPLINEMEDIACONTROLMEDIA const lpMediaList,
1273 DWORD dwMediaNumEntries,
1274 LPLINEMEDIACONTROLTONE const lpToneList,
1275 DWORD dwToneNumEntries,
1276 LPLINEMEDIACONTROLCALLSTATE const lpCallStateList,
1277 DWORD dwCallStateNumEntries)
1283 /***********************************************************************
1284 * lineSetMediaMode (TAPI32.@)
1286 DWORD WINAPI lineSetMediaMode(HCALL hCall, DWORD dwMediaModes)
1288 FIXME("(%p, %08x): stub.\n", hCall, dwMediaModes);
1292 /***********************************************************************
1293 * lineSetNumRings (TAPI32.@)
1295 DWORD WINAPI lineSetNumRings(HLINE hLine, DWORD dwAddressID, DWORD dwNumRings)
1297 FIXME("(%p, %08x, %08x): stub.\n", hLine, dwAddressID, dwNumRings);
1301 /***********************************************************************
1302 * lineSetStatusMessages (TAPI32.@)
1304 DWORD WINAPI lineSetStatusMessages(HLINE hLine, DWORD dwLineStates, DWORD dwAddressStates)
1306 FIXME("(%p, %08x, %08x): stub.\n", hLine, dwLineStates, dwAddressStates);
1310 /***********************************************************************
1311 * lineSetTerminal (TAPI32.@)
1313 DWORD WINAPI lineSetTerminal(HLINE hLine, DWORD dwAddressID, HCALL hCall, DWORD dwSelect, DWORD dwTerminalModes, DWORD dwTerminalID, DWORD bEnable)
1315 FIXME("(%p, %08x, %p, %08x, %08x, %08x, %08x): stub.\n", hLine, dwAddressID, hCall, dwSelect, dwTerminalModes, dwTerminalID, bEnable);
1319 /***********************************************************************
1320 * lineSetTollList (TAPI32.@)
1322 DWORD WINAPI lineSetTollListA(HLINEAPP hLineApp, DWORD dwDeviceID, LPCSTR lpszAddressIn, DWORD dwTollListOption)
1324 FIXME("(%p, %08x, %s, %08x): stub.\n", hLineApp, dwDeviceID, lpszAddressIn, dwTollListOption);
1328 /***********************************************************************
1329 * lineSetupConference (TAPI32.@)
1331 DWORD WINAPI lineSetupConferenceA(HCALL hCall, HLINE hLine, LPHCALL lphConfCall, LPHCALL lphConsultCall, DWORD dwNumParties, LPLINECALLPARAMS lpCallParams)
1333 FIXME("(%p, %p, %p, %p, %08x, %p): stub.\n", hCall, hLine, lphConfCall, lphConsultCall, dwNumParties, lpCallParams);
1337 /***********************************************************************
1338 * lineSetupTransfer (TAPI32.@)
1340 DWORD WINAPI lineSetupTransferA(HCALL hCall, LPHCALL lphConsultCall, LPLINECALLPARAMS lpCallParams)
1342 FIXME("(%p, %p, %p): stub.\n", hCall, lphConsultCall, lpCallParams);
1346 /***********************************************************************
1347 * lineShutdown (TAPI32.@)
1349 DWORD WINAPI lineShutdown(HLINEAPP hLineApp)
1351 FIXME("(%p): stub.\n", hLineApp);
1355 /***********************************************************************
1356 * lineSwapHold (TAPI32.@)
1358 DWORD WINAPI lineSwapHold(HCALL hActiveCall, HCALL hHeldCall)
1360 FIXME("(active: %p, held: %p): stub.\n", hActiveCall, hHeldCall);
1364 /***********************************************************************
1365 * lineTranslateAddress (TAPI32.@)
1367 DWORD WINAPI lineTranslateAddressA(HLINEAPP hLineApp, DWORD dwDeviceID, DWORD dwAPIVersion, LPCSTR lpszAddressIn, DWORD dwCard, DWORD dwTranslateOptions, LPLINETRANSLATEOUTPUT lpTranslateOutput)
1369 FIXME("(%p, %08x, %08x, %s, %08x, %08x, %p): stub.\n", hLineApp, dwDeviceID, dwAPIVersion, lpszAddressIn, dwCard, dwTranslateOptions, lpTranslateOutput);
1373 /***********************************************************************
1374 * lineTranslateDialog (TAPI32.@)
1376 DWORD WINAPI lineTranslateDialogA(HLINEAPP hLineApp, DWORD dwDeviceID, DWORD dwAPIVersion, HWND hwndOwner, LPCSTR lpszAddressIn)
1378 FIXME("(%p, %08x, %08x, %p, %s): stub.\n", hLineApp, dwDeviceID, dwAPIVersion, hwndOwner, lpszAddressIn);
1382 /***********************************************************************
1383 * lineUncompleteCall (TAPI32.@)
1385 DWORD WINAPI lineUncompleteCall(HLINE hLine, DWORD dwCompletionID)
1387 FIXME("(%p, %08x): stub.\n", hLine, dwCompletionID);
1391 /***********************************************************************
1392 * lineUnhold (TAPI32.@)
1394 DWORD WINAPI lineUnhold(HCALL hCall)
1396 FIXME("(%p): stub.\n", hCall);
1400 /***********************************************************************
1401 * lineUnpark (TAPI32.@)
1403 DWORD WINAPI lineUnparkA(HLINE hLine, DWORD dwAddressID, LPHCALL lphCall, LPCSTR lpszDestAddress)
1405 FIXME("(%p, %08x, %p, %s): stub.\n", hLine, dwAddressID, lphCall, lpszDestAddress);