1999-03-14 13:34:25 +01:00
|
|
|
/*
|
|
|
|
* TAPI32 line services
|
|
|
|
*
|
|
|
|
* Copyright 1999 Andreas Mohr
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
1999-03-14 13:34:25 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdlib.h>
|
2003-09-06 01:08:26 +02:00
|
|
|
#include <stdarg.h>
|
1999-03-14 13:34:25 +01:00
|
|
|
#include <stdio.h>
|
1999-03-14 17:35:05 +01:00
|
|
|
#include "windef.h"
|
2003-09-06 01:08:26 +02:00
|
|
|
#include "winbase.h"
|
2002-11-13 22:25:34 +01:00
|
|
|
#include "winreg.h"
|
2004-05-10 21:54:25 +02:00
|
|
|
#include "winnls.h"
|
2002-11-13 22:25:34 +01:00
|
|
|
#include "winerror.h"
|
1999-03-14 13:34:25 +01:00
|
|
|
#include "tapi.h"
|
2002-03-10 00:29:33 +01:00
|
|
|
#include "wine/debug.h"
|
1999-03-14 13:34:25 +01:00
|
|
|
|
2002-03-10 00:29:33 +01:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(tapi);
|
1999-04-19 16:56:29 +02:00
|
|
|
|
2004-05-10 21:54:25 +02:00
|
|
|
/* registry keys */
|
|
|
|
static const char szCountrylistKey[] =
|
|
|
|
"Software\\Microsoft\\Windows\\CurrentVersion\\Telephony\\Country List";
|
|
|
|
static const char szLocationsKey[] =
|
|
|
|
"Software\\Microsoft\\Windows\\CurrentVersion\\Telephony\\Locations";
|
|
|
|
static const char szCardsKey[] =
|
|
|
|
"Software\\Microsoft\\Windows\\CurrentVersion\\Telephony\\Cards";
|
|
|
|
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineAccept (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineAccept(HCALL hCall, LPCSTR lpsUserUserInfo, DWORD dwSize)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %s, %ld): stub.\n", hCall, lpsUserUserInfo, dwSize);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineAddProvider (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineAddProviderA(LPCSTR lpszProviderName, HWND hwndOwner, LPDWORD lpdwPermanentProviderID)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%s, %p, %p): stub.\n", lpszProviderName, hwndOwner, lpdwPermanentProviderID);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
1999-03-14 13:34:25 +01:00
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineAddToConference (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineAddToConference(HCALL hConfCall, HCALL hConsultCall)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %p): stub.\n", hConfCall, hConsultCall);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineAnswer (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineAnswer(HCALL hCall, LPCSTR lpsUserUserInfo, DWORD dwSize)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %s, %ld): stub.\n", hCall, lpsUserUserInfo, dwSize);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
1999-03-14 13:34:25 +01:00
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineBlindTransfer (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineBlindTransferA(HCALL hCall, LPCSTR lpszDestAddress, DWORD dwCountryCode)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %s, %08lx): stub.\n", hCall, lpszDestAddress, dwCountryCode);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
1999-03-14 13:34:25 +01:00
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineClose (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineClose(HLINE hLine)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p): stub.\n", hLine);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
1999-03-14 13:34:25 +01:00
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineCompleteCall (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineCompleteCall(HCALL hCall, LPDWORD lpdwCompletionID, DWORD dwCompletionMode, DWORD dwMessageID)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %p, %08lx, %08lx): stub.\n", hCall, lpdwCompletionID, dwCompletionMode, dwMessageID);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
1999-03-14 13:34:25 +01:00
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineCompleteTransfer (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineCompleteTransfer(HCALL hCall, HCALL hConsultCall, LPHCALL lphConfCall, DWORD dwTransferMode)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %p, %p, %08lx): stub.\n", hCall, hConsultCall, lphConfCall, dwTransferMode);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineConfigDialog (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineConfigDialogA(DWORD dwDeviceID, HWND hwndOwner, LPCSTR lpszDeviceClass)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%08lx, %p, %s): stub.\n", dwDeviceID, hwndOwner, lpszDeviceClass);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
1999-03-14 13:34:25 +01:00
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineConfigDialogEdit (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineConfigDialogEditA(DWORD dwDeviceID, HWND hwndOwner, LPCSTR lpszDeviceClass, LPVOID const lpDeviceConfigIn, DWORD dwSize, LPVARSTRING lpDeviceConfigOut)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
1999-12-08 04:56:23 +01:00
|
|
|
FIXME("stub.\n");
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
1999-03-14 13:34:25 +01:00
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineConfigProvider (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineConfigProvider(HWND hwndOwner, DWORD dwPermanentProviderID)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx): stub.\n", hwndOwner, dwPermanentProviderID);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineDeallocateCall (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineDeallocateCall(HCALL hCall)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p): stub.\n", hCall);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineDevSpecific (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineDevSpecific(HLINE hLine, DWORD dwAddressId, HCALL hCall, LPVOID lpParams, DWORD dwSize)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %p, %p, %ld): stub.\n", hLine, dwAddressId, hCall, lpParams, dwSize);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
1999-03-14 13:34:25 +01:00
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineDevSpecificFeature (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineDevSpecificFeature(HLINE hLine, DWORD dwFeature, LPVOID lpParams, DWORD dwSize)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %p, %ld): stub.\n", hLine, dwFeature, lpParams, dwSize);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineDial (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineDialA(HCALL hCall, LPCSTR lpszDestAddress, DWORD dwCountryCode)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %s, %08lx): stub.\n", hCall, lpszDestAddress, dwCountryCode);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
|
|
|
}
|
2000-03-24 21:46:04 +01:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* lineDrop (TAPI32.@)
|
2002-06-01 01:06:46 +02:00
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineDrop(HCALL hCall, LPCSTR lpsUserUserInfo, DWORD dwSize)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %s, %08lx): stub.\n", hCall, lpsUserUserInfo, dwSize);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineForward (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineForwardA(HLINE hLine, DWORD bAllAddress, DWORD dwAdressID, LPLINEFORWARDLIST lpForwardList, DWORD dwNumRingsNoAnswer, LPHCALL lphConsultCall, LPLINECALLPARAMS lpCallParams)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
1999-12-08 04:56:23 +01:00
|
|
|
FIXME("stub.\n");
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
2000-03-24 21:46:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* lineGatherDigits (TAPI32.@)
|
2002-06-01 01:06:46 +02:00
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineGatherDigitsA(HCALL hCall, DWORD dwDigitModes, LPSTR lpsDigits, DWORD dwNumDigits, LPCSTR lpszTerminationDigits, DWORD dwFirstDigitTimeout, DWORD dwInterDigitTimeout)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
1999-12-08 04:56:23 +01:00
|
|
|
FIXME("stub.\n");
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineGenerateDigits (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineGenerateDigitsA(HCALL hCall, DWORD dwDigitModes, LPCSTR lpszDigits, DWORD dwDuration)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %s, %ld): stub.\n", hCall, dwDigitModes, lpszDigits, dwDuration);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineGenerateTone (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineGenerateTone(HCALL hCall, DWORD dwToneMode, DWORD dwDuration, DWORD dwNumTones, LPLINEGENERATETONE lpTones)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %ld, %ld, %p): stub.\n", hCall, dwToneMode, dwDuration, dwNumTones, lpTones);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
1999-03-14 13:34:25 +01:00
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineGetAddressCaps (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineGetAddressCapsA(HLINEAPP hLineApp, DWORD dwDeviceID, DWORD dwAddressID, DWORD dwAPIVersion, DWORD dwExtVersion, LPLINEADDRESSCAPS lpAddressCaps)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %08lx, %08lx, %08lx, %p): stub.\n", hLineApp, dwDeviceID, dwAddressID, dwAPIVersion, dwExtVersion, lpAddressCaps);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineGetAddressID (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineGetAddressIDA(HLINE hLine, LPDWORD lpdwAddressID, DWORD dwAddressMode, LPCSTR lpsAddress, DWORD dwSize)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("%p, %p, %08lx, %s, %ld): stub.\n", hLine, lpdwAddressID, dwAddressMode, lpsAddress, dwSize);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineGetAddressStatus (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineGetAddressStatusA(HLINE hLine, DWORD dwAddressID, LPLINEADDRESSSTATUS lpAddressStatus)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %p): stub.\n", hLine, dwAddressID, lpAddressStatus);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
2000-03-24 21:46:04 +01:00
|
|
|
}
|
1999-03-14 13:34:25 +01:00
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineGetAppPriority (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineGetAppPriorityA(LPCSTR lpszAppFilename, DWORD dwMediaMode, LPLINEEXTENSIONID const lpExtensionID, DWORD dwRequestMode, LPVARSTRING lpExtensionName, LPDWORD lpdwPriority)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
1999-12-08 04:56:23 +01:00
|
|
|
FIXME("(%s, %08lx, %p, %08lx, %p, %p): stub.\n", lpszAppFilename, dwMediaMode, lpExtensionID, dwRequestMode, lpExtensionName, lpdwPriority);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
1999-03-14 13:34:25 +01:00
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineGetCallInfo (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineGetCallInfoA(HCALL hCall, LPLINECALLINFO lpCallInfo)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %p): stub.\n", hCall, lpCallInfo);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineGetCallStatus (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineGetCallStatus(HCALL hCall, LPLINECALLSTATUS lpCallStatus)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %p): stub.\n", hCall, lpCallStatus);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineGetConfRelatedCalls (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineGetConfRelatedCalls(HCALL hCall, LPLINECALLLIST lpCallList)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %p): stub.\n", hCall, lpCallList);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
1999-03-14 13:34:25 +01:00
|
|
|
|
2000-07-23 16:20:58 +02:00
|
|
|
typedef struct tagTAPI_CountryInfo
|
|
|
|
{
|
|
|
|
DWORD dwCountryID;
|
|
|
|
DWORD dwCountryCode;
|
|
|
|
LPSTR lpCountryName;
|
2002-06-01 01:06:46 +02:00
|
|
|
LPSTR lpSameAreaRule;
|
|
|
|
LPSTR lpLongDistanceRule;
|
|
|
|
LPSTR lpInternationalRule;
|
2000-07-23 16:20:58 +02:00
|
|
|
} TAPI_CountryInfo;
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineGetCountry (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineGetCountryA(DWORD dwCountryID, DWORD dwAPIVersion, LPLINECOUNTRYLIST lpLineCountryList)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
2002-11-13 22:25:34 +01:00
|
|
|
DWORD dwAvailSize, dwOffset, i, num_countries, max_subkey_len;
|
2000-07-23 16:20:58 +02:00
|
|
|
LPLINECOUNTRYENTRY lpLCE;
|
2002-11-13 22:25:34 +01:00
|
|
|
HKEY hkey;
|
|
|
|
char *subkey_name;
|
2000-07-23 16:20:58 +02:00
|
|
|
|
2002-02-01 20:01:31 +01:00
|
|
|
if(!lpLineCountryList) {
|
|
|
|
TRACE("(%08lx, %08lx, %p): stub. Returning LINEERR_INVALPOINTER\n",
|
|
|
|
dwCountryID, dwAPIVersion, lpLineCountryList);
|
|
|
|
return LINEERR_INVALPOINTER;
|
|
|
|
}
|
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
TRACE("(%08lx, %08lx, %p(%ld)): stub.\n",
|
2002-02-01 20:01:31 +01:00
|
|
|
dwCountryID, dwAPIVersion, lpLineCountryList,
|
|
|
|
lpLineCountryList->dwTotalSize);
|
2000-07-23 16:20:58 +02:00
|
|
|
|
2004-05-10 21:54:25 +02:00
|
|
|
if(RegOpenKeyA(HKEY_LOCAL_MACHINE, szCountrylistKey, &hkey)
|
|
|
|
!= ERROR_SUCCESS)
|
2002-11-13 22:25:34 +01:00
|
|
|
return LINEERR_INIFILECORRUPT;
|
|
|
|
|
|
|
|
|
2000-07-23 16:20:58 +02:00
|
|
|
dwAvailSize = lpLineCountryList->dwTotalSize;
|
|
|
|
dwOffset = sizeof (LINECOUNTRYLIST);
|
|
|
|
|
|
|
|
if(dwAvailSize<dwOffset)
|
|
|
|
return LINEERR_STRUCTURETOOSMALL;
|
|
|
|
|
|
|
|
memset(lpLineCountryList, 0, dwAvailSize);
|
|
|
|
|
2002-02-01 20:01:31 +01:00
|
|
|
lpLineCountryList->dwTotalSize = dwAvailSize;
|
2000-07-23 16:20:58 +02:00
|
|
|
lpLineCountryList->dwUsedSize = dwOffset;
|
|
|
|
lpLineCountryList->dwNumCountries = 0;
|
|
|
|
lpLineCountryList->dwCountryListSize = 0;
|
|
|
|
lpLineCountryList->dwCountryListOffset = dwOffset;
|
|
|
|
|
|
|
|
lpLCE = (LPLINECOUNTRYENTRY)(&lpLineCountryList[1]);
|
|
|
|
|
2002-11-13 22:25:34 +01:00
|
|
|
if(RegQueryInfoKeyA(hkey, NULL, NULL, NULL, &num_countries, &max_subkey_len,
|
|
|
|
NULL, NULL, NULL, NULL, NULL, NULL) != ERROR_SUCCESS) {
|
|
|
|
RegCloseKey(hkey);
|
|
|
|
return LINEERR_STRUCTURETOOSMALL;
|
|
|
|
}
|
|
|
|
|
|
|
|
if(dwCountryID)
|
|
|
|
dwOffset = sizeof (LINECOUNTRYENTRY);
|
|
|
|
else
|
|
|
|
dwOffset += num_countries * sizeof (LINECOUNTRYENTRY);
|
|
|
|
|
|
|
|
max_subkey_len++;
|
|
|
|
subkey_name = HeapAlloc(GetProcessHeap(), 0, max_subkey_len);
|
|
|
|
for(i = 0; i < num_countries; i++)
|
2000-07-23 16:20:58 +02:00
|
|
|
{
|
2002-11-13 22:25:34 +01:00
|
|
|
DWORD len, size, size_int, size_long, size_name, size_same;
|
|
|
|
HKEY hsubkey;
|
2000-07-23 16:20:58 +02:00
|
|
|
|
2002-11-13 22:25:34 +01:00
|
|
|
if(RegEnumKeyA(hkey, i, subkey_name, max_subkey_len) !=
|
|
|
|
ERROR_SUCCESS)
|
|
|
|
continue;
|
|
|
|
|
|
|
|
if(dwCountryID && (atoi(subkey_name) != dwCountryID))
|
2000-07-23 16:20:58 +02:00
|
|
|
continue;
|
|
|
|
|
2002-11-13 22:25:34 +01:00
|
|
|
if(RegOpenKeyA(hkey, subkey_name, &hsubkey) != ERROR_SUCCESS)
|
|
|
|
continue;
|
|
|
|
|
|
|
|
RegQueryValueExA(hsubkey, "InternationalRule", NULL, NULL,
|
|
|
|
NULL, &size_int);
|
|
|
|
len = size_int;
|
|
|
|
|
|
|
|
RegQueryValueExA(hsubkey, "LongDistanceRule", NULL, NULL,
|
|
|
|
NULL, &size_long);
|
|
|
|
len += size_long;
|
|
|
|
|
|
|
|
RegQueryValueExA(hsubkey, "Name", NULL, NULL,
|
|
|
|
NULL, &size_name);
|
|
|
|
len += size_name;
|
2000-07-23 16:20:58 +02:00
|
|
|
|
2002-11-13 22:25:34 +01:00
|
|
|
RegQueryValueExA(hsubkey, "SameAreaRule", NULL, NULL,
|
|
|
|
NULL, &size_same);
|
|
|
|
len += size_same;
|
|
|
|
|
|
|
|
if(dwAvailSize < (dwOffset+len))
|
2000-07-23 16:20:58 +02:00
|
|
|
{
|
2002-11-13 22:25:34 +01:00
|
|
|
dwOffset += len;
|
|
|
|
RegCloseKey(hsubkey);
|
|
|
|
if(dwCountryID)
|
|
|
|
break;
|
2000-07-23 16:20:58 +02:00
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
|
|
|
lpLineCountryList->dwNumCountries++;
|
2002-11-13 22:25:34 +01:00
|
|
|
lpLineCountryList->dwCountryListSize += sizeof (LINECOUNTRYENTRY);
|
|
|
|
lpLineCountryList->dwUsedSize += len + sizeof (LINECOUNTRYENTRY);
|
2000-07-23 16:20:58 +02:00
|
|
|
|
2002-11-13 22:25:34 +01:00
|
|
|
if(dwCountryID)
|
|
|
|
i = 0;
|
2000-07-23 16:20:58 +02:00
|
|
|
|
2002-11-13 22:25:34 +01:00
|
|
|
lpLCE[i].dwCountryID = atoi(subkey_name);
|
|
|
|
size = sizeof(DWORD);
|
|
|
|
RegQueryValueExA(hsubkey, "CountryCode", NULL, NULL,
|
|
|
|
(BYTE*)&lpLCE[i].dwCountryCode, &size);
|
2000-07-23 16:20:58 +02:00
|
|
|
|
2002-11-13 22:25:34 +01:00
|
|
|
lpLCE[i].dwNextCountryID = 0;
|
|
|
|
|
|
|
|
if(i > 0)
|
|
|
|
lpLCE[i-1].dwNextCountryID = lpLCE[i].dwCountryID;
|
2000-07-23 16:20:58 +02:00
|
|
|
|
|
|
|
/* add country name */
|
2002-11-13 22:25:34 +01:00
|
|
|
lpLCE[i].dwCountryNameSize = size_name;
|
2000-07-23 16:20:58 +02:00
|
|
|
lpLCE[i].dwCountryNameOffset = dwOffset;
|
2002-11-13 22:25:34 +01:00
|
|
|
RegQueryValueExA(hsubkey, "Name", NULL, NULL,
|
2005-07-07 14:08:42 +02:00
|
|
|
((LPBYTE)lpLineCountryList)+dwOffset,
|
2002-11-13 22:25:34 +01:00
|
|
|
&size_name);
|
|
|
|
dwOffset += size_name;
|
2000-07-23 16:20:58 +02:00
|
|
|
|
|
|
|
/* add Same Area Rule */
|
2002-11-13 22:25:34 +01:00
|
|
|
lpLCE[i].dwSameAreaRuleSize = size_same;
|
2000-07-23 16:20:58 +02:00
|
|
|
lpLCE[i].dwSameAreaRuleOffset = dwOffset;
|
2002-11-13 22:25:34 +01:00
|
|
|
RegQueryValueExA(hsubkey, "SameAreaRule", NULL, NULL,
|
2005-07-07 14:08:42 +02:00
|
|
|
((LPBYTE)lpLineCountryList)+dwOffset,
|
2002-11-13 22:25:34 +01:00
|
|
|
&size_same);
|
|
|
|
dwOffset += size_same;
|
2000-07-23 16:20:58 +02:00
|
|
|
|
|
|
|
/* add Long Distance Rule */
|
2002-11-13 22:25:34 +01:00
|
|
|
lpLCE[i].dwLongDistanceRuleSize = size_long;
|
2000-07-23 16:20:58 +02:00
|
|
|
lpLCE[i].dwLongDistanceRuleOffset = dwOffset;
|
2002-11-13 22:25:34 +01:00
|
|
|
RegQueryValueExA(hsubkey, "LongDistanceRule", NULL, NULL,
|
2005-07-07 14:08:42 +02:00
|
|
|
((LPBYTE)lpLineCountryList)+dwOffset,
|
2002-11-13 22:25:34 +01:00
|
|
|
&size_long);
|
|
|
|
dwOffset += size_long;
|
2000-07-23 16:20:58 +02:00
|
|
|
|
|
|
|
/* add Long Distance Rule */
|
2002-11-13 22:25:34 +01:00
|
|
|
lpLCE[i].dwInternationalRuleSize = size_int;
|
2000-07-23 16:20:58 +02:00
|
|
|
lpLCE[i].dwInternationalRuleOffset = dwOffset;
|
2002-11-13 22:25:34 +01:00
|
|
|
RegQueryValueExA(hsubkey, "InternationalRule", NULL, NULL,
|
2005-07-07 14:08:42 +02:00
|
|
|
((LPBYTE)lpLineCountryList)+dwOffset,
|
2002-11-13 22:25:34 +01:00
|
|
|
&size_int);
|
|
|
|
dwOffset += size_int;
|
|
|
|
RegCloseKey(hsubkey);
|
|
|
|
|
|
|
|
TRACE("Added country %s at %p\n", (LPSTR)lpLineCountryList + lpLCE[i].dwCountryNameOffset,
|
|
|
|
&lpLCE[i]);
|
|
|
|
|
|
|
|
if(dwCountryID) break;
|
2000-07-23 16:20:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
lpLineCountryList->dwNeededSize = dwOffset;
|
|
|
|
|
|
|
|
TRACE("%ld available %ld required\n", dwAvailSize, dwOffset);
|
|
|
|
|
2002-11-13 22:25:34 +01:00
|
|
|
HeapFree(GetProcessHeap(), 0, subkey_name);
|
|
|
|
RegCloseKey(hkey);
|
|
|
|
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineGetDevCaps (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineGetDevCapsA(HLINEAPP hLineApp, DWORD dwDeviceID, DWORD dwAPIVersion, DWORD dwExtVersion, LPLINEDEVCAPS lpLineDevCaps)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %08lx, %08lx, %p): stub.\n", hLineApp, dwDeviceID, dwAPIVersion, dwExtVersion, lpLineDevCaps);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
1999-03-14 13:34:25 +01:00
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineGetDevConfig (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineGetDevConfigA(DWORD dwDeviceID, LPVARSTRING lpDeviceConfig, LPCSTR lpszDeviceClass)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
1999-12-08 04:56:23 +01:00
|
|
|
FIXME("(%08lx, %p, %s): stub.\n", dwDeviceID, lpDeviceConfig, lpszDeviceClass);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineGetID (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineGetIDA(HLINE hLine, DWORD dwAddressID, HCALL hCall, DWORD dwSelect, LPVARSTRING lpDeviceID, LPCSTR lpszDeviceClass)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %p, %08lx, %p, %s): stub.\n", hLine, dwAddressID, hCall, dwSelect, lpDeviceID, lpszDeviceClass);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineGetIcon (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineGetIconA(DWORD dwDeviceID, LPCSTR lpszDeviceClass, HICON *lphIcon)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
1999-12-08 04:56:23 +01:00
|
|
|
FIXME("(%08lx, %s, %p): stub.\n", dwDeviceID, lpszDeviceClass, lphIcon);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
1999-03-14 13:34:25 +01:00
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineGetLineDevStatus (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineGetLineDevStatusA(HLINE hLine, LPLINEDEVSTATUS lpLineDevStatus)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %p): stub.\n", hLine, lpLineDevStatus);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
1999-03-14 13:34:25 +01:00
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineGetNewCalls (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineGetNewCalls(HLINE hLine, DWORD dwAddressID, DWORD dwSelect, LPLINECALLLIST lpCallList)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %08lx, %p): stub.\n", hLine, dwAddressID, dwSelect, lpCallList);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineGetNumRings (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineGetNumRings(HLINE hLine, DWORD dwAddressID, LPDWORD lpdwNumRings)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %p): stub.\n", hLine, dwAddressID, lpdwNumRings);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineGetProviderList (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineGetProviderListA(DWORD dwAPIVersion, LPLINEPROVIDERLIST lpProviderList)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
1999-12-08 04:56:23 +01:00
|
|
|
FIXME("(%08lx, %p): stub.\n", dwAPIVersion, lpProviderList);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
1999-03-14 13:34:25 +01:00
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineGetRequest (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineGetRequestA(HLINEAPP hLineApp, DWORD dwRequestMode, LPVOID lpRequestBuffer)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("%p, %08lx, %p): stub.\n", hLineApp, dwRequestMode, lpRequestBuffer);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
1999-03-14 13:34:25 +01:00
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineGetStatusMessages (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineGetStatusMessages(HLINE hLine, LPDWORD lpdwLineStatus, LPDWORD lpdwAddressStates)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %p, %p): stub.\n", hLine, lpdwLineStatus, lpdwAddressStates);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
1999-03-14 13:34:25 +01:00
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineGetTranslateCaps (TAPI32.@)
|
2004-05-10 21:54:25 +02:00
|
|
|
*
|
|
|
|
* get address translate capabilities. Returns a LINETRANSLATECAPS
|
|
|
|
* structure:
|
|
|
|
*
|
|
|
|
* +-----------------------+
|
|
|
|
* |TotalSize |
|
|
|
|
* |NeededSize |
|
|
|
|
* |UsedSize |
|
|
|
|
* +-----------------------+
|
|
|
|
* |NumLocations |
|
|
|
|
* |LocationsListSize |
|
|
|
|
* |LocationsListOffset | -+
|
|
|
|
* |CurrentLocationID | |
|
|
|
|
* +-----------------------+ |
|
|
|
|
* |NumCards | |
|
|
|
|
* |CardListSize | |
|
|
|
|
* |CardListOffset | -|--+
|
|
|
|
* |CurrentPreferredCardID | | |
|
|
|
|
* +-----------------------+ | |
|
|
|
|
* | | <+ |
|
|
|
|
* |LINELOCATIONENTRY #1 | |
|
|
|
|
* | | |
|
|
|
|
* +-----------------------+ |
|
|
|
|
* ~ ~ |
|
|
|
|
* +-----------------------+ |
|
|
|
|
* | | |
|
|
|
|
* |LINELOCATIONENTRY | |
|
|
|
|
* | #NumLocations| |
|
|
|
|
* +-----------------------+ |
|
|
|
|
* | | <---+
|
|
|
|
* |LINECARDENTRY #1 |
|
|
|
|
* | |
|
|
|
|
* +-----------------------+
|
|
|
|
* ~ ~
|
|
|
|
* +-----------------------+
|
|
|
|
* | |
|
|
|
|
* |LINECARDENTRY #NumCards|
|
|
|
|
* | |
|
|
|
|
* +-----------------------+
|
|
|
|
* | room for strings named|
|
|
|
|
* | in the structures |
|
|
|
|
* | above. |
|
|
|
|
* +-----------------------+
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineGetTranslateCapsA(HLINEAPP hLineApp, DWORD dwAPIVersion,
|
2004-05-10 21:54:25 +02:00
|
|
|
LPLINETRANSLATECAPS lpTranslateCaps)
|
|
|
|
{
|
|
|
|
HKEY hkLocations, hkCards, hkCardLocations, hsubkey;
|
|
|
|
int numlocations, numcards;
|
|
|
|
DWORD maxlockeylen,
|
|
|
|
maxcardkeylen;
|
|
|
|
char *loc_key_name = NULL;
|
|
|
|
char *card_key_name = NULL;
|
|
|
|
LPBYTE strptr;
|
|
|
|
int length;
|
|
|
|
int i;
|
|
|
|
DWORD lendword;
|
|
|
|
DWORD currentid;
|
|
|
|
LPLINELOCATIONENTRY pLocEntry;
|
|
|
|
LPLINECARDENTRY pCardEntry;
|
|
|
|
|
|
|
|
TRACE("(%p, %08lx, %p (tot. size %ld)\n", hLineApp, dwAPIVersion,
|
|
|
|
lpTranslateCaps, lpTranslateCaps->dwTotalSize );
|
|
|
|
if( lpTranslateCaps->dwTotalSize < sizeof(LINETRANSLATECAPS))
|
|
|
|
return LINEERR_STRUCTURETOOSMALL;
|
|
|
|
if( RegCreateKeyA(HKEY_LOCAL_MACHINE, szLocationsKey, &hkLocations)
|
|
|
|
!= ERROR_SUCCESS ) {
|
|
|
|
ERR("unexpected registry error 1.\n");
|
|
|
|
return LINEERR_INIFILECORRUPT;
|
|
|
|
}
|
|
|
|
lendword = sizeof( DWORD);
|
|
|
|
if( RegQueryValueExA( hkLocations, "CurrentID", NULL, NULL,
|
|
|
|
(LPBYTE) ¤tid, &lendword) != ERROR_SUCCESS )
|
|
|
|
currentid = -1; /* change this later */
|
|
|
|
if(RegQueryInfoKeyA(hkLocations, NULL, NULL, NULL, NULL, &maxlockeylen,
|
|
|
|
NULL, NULL, NULL, NULL, NULL, NULL) != ERROR_SUCCESS) {
|
|
|
|
RegCloseKey(hkLocations);
|
|
|
|
ERR("unexpected registry error 2.\n");
|
|
|
|
return LINEERR_INIFILECORRUPT;
|
|
|
|
}
|
|
|
|
maxlockeylen++;
|
|
|
|
if( maxlockeylen < 10)
|
|
|
|
maxlockeylen = 10; /* need this also if there is no key */
|
|
|
|
loc_key_name = HeapAlloc( GetProcessHeap(), 0, maxlockeylen);
|
|
|
|
/* first time through: calculate needed space */
|
|
|
|
length=0;
|
|
|
|
i=0;
|
|
|
|
numlocations=0;
|
|
|
|
while( RegEnumKeyA(hkLocations, i, loc_key_name, maxlockeylen)
|
|
|
|
== ERROR_SUCCESS){
|
|
|
|
DWORD size_val;
|
|
|
|
i++;
|
|
|
|
if( strncasecmp(loc_key_name, "location", 8) ||
|
|
|
|
(RegOpenKeyA(hkLocations, loc_key_name, &hsubkey)
|
|
|
|
!= ERROR_SUCCESS))
|
|
|
|
continue;
|
|
|
|
numlocations++;
|
|
|
|
length += sizeof(LINELOCATIONENTRY);
|
|
|
|
RegQueryValueExA(hsubkey, "Name",NULL,NULL,NULL,&size_val);
|
|
|
|
length += size_val;
|
|
|
|
RegQueryValueExA(hsubkey, "AreaCode",NULL,NULL,NULL,&size_val);
|
|
|
|
length += size_val;
|
|
|
|
RegQueryValueExA(hsubkey, "OutsideAccess",NULL,NULL,NULL,&size_val);
|
|
|
|
length += size_val;
|
|
|
|
RegQueryValueExA(hsubkey, "LongDistanceAccess",NULL,NULL,NULL,&size_val);
|
|
|
|
length += size_val;
|
|
|
|
RegQueryValueExA(hsubkey, "DisableCallWaiting",NULL,NULL,NULL,&size_val);
|
|
|
|
length += size_val;
|
|
|
|
/* fixme: what about TollPrefixList???? */
|
|
|
|
RegCloseKey(hsubkey);
|
|
|
|
}
|
|
|
|
if(numlocations == 0) {
|
|
|
|
/* add one location */
|
|
|
|
if( RegCreateKeyA( hkLocations, "Location1", &hsubkey)
|
|
|
|
== ERROR_SUCCESS) {
|
|
|
|
DWORD dwval;
|
2005-07-18 11:10:51 +02:00
|
|
|
char buf[10];
|
2004-05-10 21:54:25 +02:00
|
|
|
numlocations = 1;
|
|
|
|
length += sizeof(LINELOCATIONENTRY) + 20 ;
|
2005-07-07 14:08:42 +02:00
|
|
|
RegSetValueExA( hsubkey, "AreaCode", 0, REG_SZ, (LPBYTE)"010", 4);
|
2004-05-10 21:54:25 +02:00
|
|
|
GetLocaleInfoA( LOCALE_SYSTEM_DEFAULT, LOCALE_ICOUNTRY, buf, 8);
|
|
|
|
dwval = atoi(buf);
|
|
|
|
RegSetValueExA( hsubkey, "Country", 0, REG_DWORD, (LPBYTE)&dwval,
|
|
|
|
sizeof(DWORD));
|
2005-07-07 14:08:42 +02:00
|
|
|
RegSetValueExA( hsubkey, "DisableCallWaiting", 0, REG_SZ, (LPBYTE)"", 1);
|
2004-05-10 21:54:25 +02:00
|
|
|
dwval = 1;
|
|
|
|
RegSetValueExA( hsubkey, "Flags", 0, REG_DWORD, (LPBYTE)&dwval,
|
|
|
|
sizeof(DWORD));
|
2005-07-07 14:08:42 +02:00
|
|
|
RegSetValueExA( hsubkey, "LongDistanceAccess", 0, REG_SZ, (LPBYTE)"", 1);
|
|
|
|
RegSetValueExA( hsubkey, "Name", 0, REG_SZ, (LPBYTE)"New Location", 13);
|
|
|
|
RegSetValueExA( hsubkey, "OutsideAccess", 0, REG_SZ, (LPBYTE)"", 1);
|
2004-05-10 21:54:25 +02:00
|
|
|
RegCloseKey(hsubkey);
|
|
|
|
dwval = 1;
|
|
|
|
RegSetValueExA( hkLocations, "CurrentID", 0, REG_DWORD,
|
|
|
|
(LPBYTE)&dwval, sizeof(DWORD));
|
|
|
|
dwval = 2;
|
|
|
|
RegSetValueExA( hkLocations, "NextID", 0, REG_DWORD, (LPBYTE)&dwval,
|
|
|
|
sizeof(DWORD));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/* do the card list */
|
|
|
|
numcards=0;
|
|
|
|
if( RegCreateKeyA(HKEY_CURRENT_USER, szCardsKey, &hkCards)
|
|
|
|
== ERROR_SUCCESS ) {
|
|
|
|
if(RegQueryInfoKeyA(hkCards, NULL, NULL, NULL, NULL, &maxcardkeylen,
|
|
|
|
NULL, NULL, NULL, NULL, NULL, NULL) == ERROR_SUCCESS) {
|
|
|
|
maxcardkeylen++;
|
|
|
|
if( maxcardkeylen < 6) maxcardkeylen = 6;
|
|
|
|
card_key_name = HeapAlloc(GetProcessHeap(), 0, maxcardkeylen);
|
|
|
|
i=0;
|
|
|
|
while( RegEnumKeyA(hkCards, i, card_key_name, maxcardkeylen) ==
|
|
|
|
ERROR_SUCCESS){
|
|
|
|
DWORD size_val;
|
|
|
|
i++;
|
|
|
|
if( strncasecmp(card_key_name, "card", 4) || ERROR_SUCCESS !=
|
|
|
|
(RegOpenKeyA(hkCards, card_key_name, &hsubkey) ))
|
|
|
|
continue;
|
|
|
|
numcards++;
|
|
|
|
length += sizeof(LINECARDENTRY);
|
|
|
|
RegQueryValueExA(hsubkey, "Name",NULL,NULL,NULL,&size_val);
|
|
|
|
length += size_val;
|
|
|
|
RegQueryValueExA(hsubkey, "LocalRule",NULL,NULL,NULL,&size_val);
|
|
|
|
length += size_val;
|
|
|
|
RegQueryValueExA(hsubkey, "LDRule",NULL,NULL,NULL,&size_val);
|
|
|
|
length += size_val;
|
|
|
|
RegQueryValueExA(hsubkey, "InternationalRule",NULL,NULL,NULL,
|
|
|
|
&size_val);
|
|
|
|
length += size_val;
|
|
|
|
RegCloseKey(hsubkey);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/* add one card (direct call) */
|
|
|
|
if (numcards == 0 &&
|
|
|
|
ERROR_SUCCESS == RegCreateKeyA( hkCards, "Card1", &hsubkey)) {
|
|
|
|
DWORD dwval;
|
|
|
|
numcards = 1;
|
|
|
|
length += sizeof(LINECARDENTRY) + 22 ;
|
2005-07-07 14:08:42 +02:00
|
|
|
RegSetValueExA( hsubkey, "Name", 0, REG_SZ, (LPBYTE)"None (Direct Call)", 19);
|
2004-05-10 21:54:25 +02:00
|
|
|
dwval = 1;
|
|
|
|
RegSetValueExA( hsubkey, "Flags", 0, REG_DWORD, (LPBYTE)&dwval,
|
|
|
|
sizeof(DWORD));
|
2005-07-07 14:08:42 +02:00
|
|
|
RegSetValueExA( hsubkey, "InternationalRule", 0, REG_SZ, (LPBYTE)"", 1);
|
|
|
|
RegSetValueExA( hsubkey, "LDRule", 0, REG_SZ, (LPBYTE)"", 1);
|
|
|
|
RegSetValueExA( hsubkey, "LocalRule", 0, REG_SZ, (LPBYTE)"", 1);
|
2004-05-10 21:54:25 +02:00
|
|
|
RegCloseKey(hsubkey);
|
|
|
|
dwval = 2;
|
|
|
|
RegSetValueExA( hkCards, "NextID", 0, REG_DWORD, (LPBYTE)&dwval,
|
|
|
|
sizeof(DWORD));
|
|
|
|
}
|
|
|
|
} else hkCards = 0; /* should realy fail */
|
|
|
|
/* check if sufficient room is available */
|
|
|
|
lpTranslateCaps->dwNeededSize = sizeof(LINETRANSLATECAPS) + length;
|
|
|
|
if ( lpTranslateCaps->dwNeededSize > lpTranslateCaps->dwTotalSize ) {
|
|
|
|
RegCloseKey( hkLocations);
|
|
|
|
if( hkCards) RegCloseKey( hkCards);
|
|
|
|
HeapFree(GetProcessHeap(), 0, loc_key_name);
|
|
|
|
HeapFree(GetProcessHeap(), 0, card_key_name);
|
|
|
|
lpTranslateCaps->dwUsedSize = sizeof(LINETRANSLATECAPS);
|
|
|
|
TRACE("Insufficient space: total %ld needed %ld used %ld\n",
|
|
|
|
lpTranslateCaps->dwTotalSize,
|
|
|
|
lpTranslateCaps->dwNeededSize,
|
|
|
|
lpTranslateCaps->dwUsedSize);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
/* fill in the LINETRANSLATECAPS structure */
|
|
|
|
lpTranslateCaps->dwUsedSize = lpTranslateCaps->dwNeededSize;
|
|
|
|
lpTranslateCaps->dwNumLocations = numlocations;
|
|
|
|
lpTranslateCaps->dwLocationListSize = sizeof(LINELOCATIONENTRY) *
|
|
|
|
lpTranslateCaps->dwNumLocations;
|
|
|
|
lpTranslateCaps->dwLocationListOffset = sizeof(LINETRANSLATECAPS);
|
|
|
|
lpTranslateCaps->dwCurrentLocationID = currentid;
|
|
|
|
lpTranslateCaps->dwNumCards = numcards;
|
|
|
|
lpTranslateCaps->dwCardListSize = sizeof(LINECARDENTRY) *
|
|
|
|
lpTranslateCaps->dwNumCards;
|
|
|
|
lpTranslateCaps->dwCardListOffset = lpTranslateCaps->dwLocationListOffset +
|
|
|
|
lpTranslateCaps->dwLocationListSize;
|
|
|
|
lpTranslateCaps->dwCurrentPreferredCardID = 0;
|
|
|
|
/* this is where the strings will be stored */
|
|
|
|
strptr = ((LPBYTE) lpTranslateCaps) +
|
|
|
|
lpTranslateCaps->dwCardListOffset + lpTranslateCaps->dwCardListSize;
|
|
|
|
pLocEntry = (LPLINELOCATIONENTRY) (lpTranslateCaps + 1);
|
|
|
|
/* key with Preferred CardID's */
|
|
|
|
if( RegOpenKeyA(HKEY_CURRENT_USER, szLocationsKey, &hkCardLocations)
|
|
|
|
!= ERROR_SUCCESS )
|
|
|
|
hkCardLocations = 0;
|
|
|
|
/* second time through all locations */
|
|
|
|
i=0;
|
|
|
|
while(RegEnumKeyA(hkLocations, i, loc_key_name, maxlockeylen)
|
|
|
|
== ERROR_SUCCESS){
|
|
|
|
DWORD size_val;
|
|
|
|
i++;
|
|
|
|
if( strncasecmp(loc_key_name, "location", 8) ||
|
|
|
|
(RegOpenKeyA(hkLocations, loc_key_name, &hsubkey)
|
|
|
|
!= ERROR_SUCCESS))
|
|
|
|
continue;
|
|
|
|
size_val=sizeof(DWORD);
|
|
|
|
if( RegQueryValueExA(hsubkey, "ID",NULL, NULL,
|
|
|
|
(LPBYTE) &(pLocEntry->dwPermanentLocationID), &size_val) !=
|
|
|
|
ERROR_SUCCESS)
|
|
|
|
pLocEntry->dwPermanentLocationID = atoi( loc_key_name + 8);
|
|
|
|
size_val=2048;
|
|
|
|
RegQueryValueExA(hsubkey, "Name",NULL,NULL, strptr, &size_val);
|
|
|
|
pLocEntry->dwLocationNameSize = size_val;
|
|
|
|
pLocEntry->dwLocationNameOffset = strptr - (LPBYTE) lpTranslateCaps;
|
|
|
|
strptr += size_val;
|
|
|
|
|
|
|
|
size_val=2048;
|
|
|
|
RegQueryValueExA(hsubkey, "AreaCode",NULL,NULL, strptr, &size_val);
|
|
|
|
pLocEntry->dwCityCodeSize = size_val;
|
|
|
|
pLocEntry->dwCityCodeOffset = strptr - (LPBYTE) lpTranslateCaps;
|
|
|
|
strptr += size_val;
|
|
|
|
|
|
|
|
size_val=2048;
|
|
|
|
RegQueryValueExA(hsubkey, "OutsideAccess",NULL,NULL, strptr, &size_val);
|
|
|
|
pLocEntry->dwLocalAccessCodeSize = size_val;
|
|
|
|
pLocEntry->dwLocalAccessCodeOffset = strptr - (LPBYTE) lpTranslateCaps;
|
|
|
|
strptr += size_val;
|
|
|
|
size_val=2048;
|
|
|
|
RegQueryValueExA(hsubkey, "LongDistanceAccess",NULL,NULL, strptr,
|
|
|
|
&size_val);
|
|
|
|
pLocEntry->dwLongDistanceAccessCodeSize= size_val;
|
|
|
|
pLocEntry->dwLongDistanceAccessCodeOffset= strptr -
|
|
|
|
(LPBYTE) lpTranslateCaps;
|
|
|
|
strptr += size_val;
|
|
|
|
size_val=2048;
|
|
|
|
RegQueryValueExA(hsubkey, "DisableCallWaiting",NULL,NULL, strptr,
|
|
|
|
&size_val);
|
|
|
|
pLocEntry->dwCancelCallWaitingSize= size_val;
|
|
|
|
pLocEntry->dwCancelCallWaitingOffset= strptr - (LPBYTE) lpTranslateCaps;
|
|
|
|
strptr += size_val;
|
|
|
|
|
|
|
|
pLocEntry->dwTollPrefixListSize = 0; /* FIXME */
|
|
|
|
pLocEntry->dwTollPrefixListOffset = 0; /* FIXME */
|
|
|
|
|
|
|
|
size_val=sizeof(DWORD);
|
|
|
|
RegQueryValueExA(hsubkey, "Country",NULL,NULL,
|
|
|
|
(LPBYTE) &(pLocEntry->dwCountryCode), &size_val);
|
|
|
|
pLocEntry->dwCountryID = pLocEntry->dwCountryCode; /* FIXME */
|
|
|
|
RegQueryValueExA(hsubkey, "Flags",NULL,NULL,
|
|
|
|
(LPBYTE) &(pLocEntry->dwOptions), &size_val);
|
|
|
|
RegCloseKey(hsubkey);
|
|
|
|
/* get preferred cardid */
|
|
|
|
pLocEntry->dwPreferredCardID = 0;
|
|
|
|
if ( hkCardLocations) {
|
|
|
|
size_val=sizeof(DWORD);
|
|
|
|
if(RegOpenKeyA(hkCardLocations, loc_key_name, &hsubkey) ==
|
|
|
|
ERROR_SUCCESS) {
|
|
|
|
RegQueryValueExA(hsubkey, "CallingCard",NULL,NULL,
|
|
|
|
(LPBYTE) &(pLocEntry->dwPreferredCardID), &size_val);
|
|
|
|
RegCloseKey(hsubkey);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
/* make sure there is a currentID */
|
|
|
|
if(currentid == -1){
|
|
|
|
currentid = pLocEntry->dwPermanentLocationID;
|
|
|
|
lpTranslateCaps->dwCurrentLocationID = currentid;
|
|
|
|
}
|
|
|
|
if(pLocEntry->dwPermanentLocationID == currentid )
|
|
|
|
lpTranslateCaps->dwCurrentPreferredCardID =
|
|
|
|
pLocEntry->dwPreferredCardID;
|
|
|
|
TRACE("added: ID %ld %s CountryCode %ld CityCode %s CardID %ld "
|
|
|
|
"LocalAccess: %s LongDistanceAccess: %s CountryID %ld "
|
|
|
|
"Options %ld CancelCallWait %s\n",
|
|
|
|
pLocEntry->dwPermanentLocationID,
|
|
|
|
debugstr_a( (char*)lpTranslateCaps + pLocEntry->dwLocationNameOffset),
|
|
|
|
pLocEntry->dwCountryCode,
|
|
|
|
debugstr_a( (char*)lpTranslateCaps + pLocEntry->dwCityCodeOffset),
|
|
|
|
pLocEntry->dwPreferredCardID,
|
|
|
|
debugstr_a( (char*)lpTranslateCaps + pLocEntry->dwLocalAccessCodeOffset),
|
|
|
|
debugstr_a( (char*)lpTranslateCaps + pLocEntry->dwLongDistanceAccessCodeOffset),
|
|
|
|
pLocEntry->dwCountryID,
|
|
|
|
pLocEntry->dwOptions,
|
|
|
|
debugstr_a( (char*)lpTranslateCaps + pLocEntry->dwCancelCallWaitingOffset));
|
|
|
|
pLocEntry++;
|
|
|
|
}
|
|
|
|
pCardEntry= (LPLINECARDENTRY) pLocEntry;
|
|
|
|
/* do the card list */
|
|
|
|
if( hkCards) {
|
|
|
|
i=0;
|
|
|
|
while( RegEnumKeyA(hkCards, i, card_key_name, maxcardkeylen) ==
|
|
|
|
ERROR_SUCCESS){
|
|
|
|
DWORD size_val;
|
|
|
|
i++;
|
|
|
|
if( strncasecmp(card_key_name, "card", 4) ||
|
|
|
|
(RegOpenKeyA(hkCards, card_key_name, &hsubkey) != ERROR_SUCCESS))
|
|
|
|
continue;
|
|
|
|
size_val=sizeof(DWORD);
|
|
|
|
if( RegQueryValueExA(hsubkey, "ID",NULL, NULL,
|
|
|
|
(LPBYTE) &(pCardEntry->dwPermanentCardID), &size_val) !=
|
|
|
|
ERROR_SUCCESS)
|
|
|
|
pCardEntry->dwPermanentCardID= atoi( card_key_name + 4);
|
|
|
|
size_val=2048;
|
|
|
|
RegQueryValueExA(hsubkey, "Name",NULL,NULL, strptr, &size_val);
|
|
|
|
pCardEntry->dwCardNameSize = size_val;
|
|
|
|
pCardEntry->dwCardNameOffset = strptr - (LPBYTE) lpTranslateCaps;
|
|
|
|
strptr += size_val;
|
|
|
|
pCardEntry->dwCardNumberDigits = 1; /* FIXME */
|
|
|
|
size_val=2048;
|
|
|
|
RegQueryValueExA(hsubkey, "LocalRule",NULL,NULL, strptr, &size_val);
|
|
|
|
pCardEntry->dwSameAreaRuleSize= size_val;
|
|
|
|
pCardEntry->dwSameAreaRuleOffset= strptr - (LPBYTE) lpTranslateCaps;
|
|
|
|
strptr += size_val;
|
|
|
|
size_val=2048;
|
|
|
|
RegQueryValueExA(hsubkey, "LDRule",NULL,NULL, strptr, &size_val);
|
|
|
|
pCardEntry->dwLongDistanceRuleSize = size_val;
|
|
|
|
pCardEntry->dwLongDistanceRuleOffset = strptr - (LPBYTE) lpTranslateCaps;
|
|
|
|
strptr += size_val;
|
|
|
|
size_val=2048;
|
|
|
|
RegQueryValueExA(hsubkey, "InternationalRule",NULL,NULL, strptr,
|
|
|
|
&size_val);
|
|
|
|
pCardEntry->dwInternationalRuleSize = size_val;
|
|
|
|
pCardEntry->dwInternationalRuleOffset = strptr -
|
|
|
|
(LPBYTE) lpTranslateCaps;
|
|
|
|
strptr += size_val;
|
|
|
|
size_val=sizeof(DWORD);
|
|
|
|
RegQueryValueExA(hsubkey, "Flags",NULL, NULL,
|
|
|
|
(LPBYTE) &(pCardEntry->dwOptions), &size_val);
|
|
|
|
TRACE( "added card: ID %ld name %s SameArea %s LongDistance %s International %s Options 0x%lx\n",
|
|
|
|
pCardEntry->dwPermanentCardID,
|
|
|
|
debugstr_a( (char*)lpTranslateCaps + pCardEntry->dwCardNameOffset),
|
|
|
|
debugstr_a( (char*)lpTranslateCaps + pCardEntry->dwSameAreaRuleOffset),
|
|
|
|
debugstr_a( (char*)lpTranslateCaps + pCardEntry->dwLongDistanceRuleOffset),
|
|
|
|
debugstr_a( (char*)lpTranslateCaps + pCardEntry->dwInternationalRuleOffset),
|
|
|
|
pCardEntry->dwOptions);
|
|
|
|
|
|
|
|
pCardEntry++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(hkLocations) RegCloseKey(hkLocations);
|
|
|
|
if(hkCards) RegCloseKey(hkCards);
|
|
|
|
if(hkCardLocations) RegCloseKey(hkCardLocations);
|
|
|
|
HeapFree(GetProcessHeap(), 0, loc_key_name);
|
|
|
|
HeapFree(GetProcessHeap(), 0, card_key_name);
|
2005-11-10 13:14:56 +01:00
|
|
|
TRACE(" returning success tot %ld needed %ld used %ld\n",
|
2004-05-10 21:54:25 +02:00
|
|
|
lpTranslateCaps->dwTotalSize,
|
|
|
|
lpTranslateCaps->dwNeededSize,
|
|
|
|
lpTranslateCaps->dwUsedSize );
|
|
|
|
return 0; /* success */
|
1999-03-14 13:34:25 +01:00
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineHandoff (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineHandoffA(HCALL hCall, LPCSTR lpszFileName, DWORD dwMediaMode)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %s, %08lx): stub.\n", hCall, lpszFileName, dwMediaMode);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
1999-03-14 13:34:25 +01:00
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineHold (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineHold(HCALL hCall)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p): stub.\n", hCall);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
1999-03-14 13:34:25 +01:00
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineInitialize (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineInitialize(
|
|
|
|
LPHLINEAPP lphLineApp,
|
|
|
|
HINSTANCE hInstance,
|
|
|
|
LINECALLBACK lpfnCallback,
|
|
|
|
LPCSTR lpszAppName,
|
|
|
|
LPDWORD lpdwNumDevs)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %p, %p, %s, %p): stub.\n", lphLineApp, hInstance,
|
2000-05-11 23:48:28 +02:00
|
|
|
lpfnCallback, debugstr_a(lpszAppName), lpdwNumDevs);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineMakeCall (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineMakeCallA(HLINE hLine, LPHCALL lphCall, LPCSTR lpszDestAddress, DWORD dwCountryCode, LPLINECALLPARAMS lpCallParams)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %p, %s, %08lx, %p): stub.\n", hLine, lphCall, lpszDestAddress, dwCountryCode, lpCallParams);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineMonitorDigits (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineMonitorDigits(HCALL hCall, DWORD dwDigitModes)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx): stub.\n", hCall, dwDigitModes);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineMonitorMedia (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineMonitorMedia(HCALL hCall, DWORD dwMediaModes)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx): stub.\n", hCall, dwMediaModes);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
1999-03-14 13:34:25 +01:00
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineMonitorTones (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineMonitorTones(HCALL hCall, LPLINEMONITORTONE lpToneList, DWORD dwNumEntries)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %p, %08lx): stub.\n", hCall, lpToneList, dwNumEntries);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
1999-03-14 13:34:25 +01:00
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineNegotiateAPIVersion (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineNegotiateAPIVersion(
|
|
|
|
HLINEAPP hLineApp,
|
|
|
|
DWORD dwDeviceID,
|
|
|
|
DWORD dwAPILowVersion,
|
|
|
|
DWORD dwAPIHighVersion,
|
|
|
|
LPDWORD lpdwAPIVersion,
|
|
|
|
LPLINEEXTENSIONID lpExtensionID
|
|
|
|
)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %ld, %ld, %ld, %p, %p): stub.\n", hLineApp, dwDeviceID,
|
2000-05-11 23:48:28 +02:00
|
|
|
dwAPILowVersion, dwAPIHighVersion, lpdwAPIVersion, lpExtensionID);
|
1999-03-14 13:34:25 +01:00
|
|
|
*lpdwAPIVersion = dwAPIHighVersion;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineNegotiateExtVersion (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineNegotiateExtVersion(HLINEAPP hLineApp, DWORD dwDeviceID, DWORD dwAPIVersion, DWORD dwExtLowVersion, DWORD dwExtHighVersion, LPDWORD lpdwExtVersion)
|
|
|
|
{
|
1999-12-08 04:56:23 +01:00
|
|
|
FIXME("stub.\n");
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineOpen (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineOpenA(HLINEAPP hLineApp, DWORD dwDeviceID, LPHLINE lphLine, DWORD dwAPIVersion, DWORD dwExtVersion, DWORD dwCallbackInstance, DWORD dwPrivileges, DWORD dwMediaModes, LPLINECALLPARAMS lpCallParams)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
1999-12-08 04:56:23 +01:00
|
|
|
FIXME("stub.\n");
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* linePark (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineParkA(HCALL hCall, DWORD dwParkMode, LPCSTR lpszDirAddress, LPVARSTRING lpNonDirAddress)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %s, %p): stub.\n", hCall, dwParkMode, lpszDirAddress, lpNonDirAddress);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
1999-03-14 13:34:25 +01:00
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* linePickup (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI linePickupA(HLINE hLine, DWORD dwAddressID, LPHCALL lphCall, LPCSTR lpszDestAddress, LPCSTR lpszGroupID)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %p, %s, %s): stub.\n", hLine, dwAddressID, lphCall, lpszDestAddress, lpszGroupID);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
1999-03-14 13:34:25 +01:00
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* linePrepareAddToConference (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI linePrepareAddToConferenceA(HCALL hConfCall, LPHCALL lphConsultCall, LPLINECALLPARAMS lpCallParams)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %p, %p): stub.\n", hConfCall, lphConsultCall, lpCallParams);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
1999-03-14 13:34:25 +01:00
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineRedirect (TAPI32.@)
|
1999-03-14 13:34:25 +01:00
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineRedirectA(
|
1999-03-14 13:34:25 +01:00
|
|
|
HCALL hCall,
|
|
|
|
LPCSTR lpszDestAddress,
|
|
|
|
DWORD dwCountryCode) {
|
|
|
|
|
2000-05-07 20:25:04 +02:00
|
|
|
FIXME(": stub.\n");
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineRegisterRequestRecipient (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineRegisterRequestRecipient(HLINEAPP hLineApp, DWORD dwRegistrationInstance, DWORD dwRequestMode, DWORD dwEnable)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %08lx, %08lx): stub.\n", hLineApp, dwRegistrationInstance, dwRequestMode, dwEnable);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineReleaseUserUserInfo (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineReleaseUserUserInfo(HCALL hCall)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p): stub.\n", hCall);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
1999-03-14 13:34:25 +01:00
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineRemoveFromConference (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineRemoveFromConference(HCALL hCall)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p): stub.\n", hCall);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineRemoveProvider (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineRemoveProvider(DWORD dwPermanentProviderID, HWND hwndOwner)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%08lx, %p): stub.\n", dwPermanentProviderID, hwndOwner);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
1999-03-14 13:34:25 +01:00
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineSecureCall (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineSecureCall(HCALL hCall)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p): stub.\n", hCall);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineSendUserUserInfo (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineSendUserUserInfo(HCALL hCall, LPCSTR lpsUserUserInfo, DWORD dwSize)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %s, %08lx): stub.\n", hCall, lpsUserUserInfo, dwSize);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineSetAppPriority (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineSetAppPriorityA(LPCSTR lpszAppFilename, DWORD dwMediaMode, LPLINEEXTENSIONID const lpExtensionID, DWORD dwRequestMode, LPCSTR lpszExtensionName, DWORD dwPriority)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
1999-12-08 04:56:23 +01:00
|
|
|
FIXME("(%s, %08lx, %p, %08lx, %s, %08lx): stub.\n", lpszAppFilename, dwMediaMode, lpExtensionID, dwRequestMode, lpszExtensionName, dwPriority);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineSetAppSpecific (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineSetAppSpecific(HCALL hCall, DWORD dwAppSpecific)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx): stub.\n", hCall, dwAppSpecific);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineSetCallParams (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineSetCallParams(HCALL hCall, DWORD dwBearerMode, DWORD dwMinRate, DWORD dwMaxRate, LPLINEDIALPARAMS lpDialParams)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %08lx, %08lx, %p): stub.\n", hCall, dwBearerMode, dwMinRate, dwMaxRate, lpDialParams);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineSetCallPrivilege (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineSetCallPrivilege(HCALL hCall, DWORD dwCallPrivilege)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx): stub.\n", hCall, dwCallPrivilege);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineSetCurrentLocation (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineSetCurrentLocation(HLINEAPP hLineApp, DWORD dwLocation)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx): stub.\n", hLineApp, dwLocation);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineSetDevConfig (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineSetDevConfigA(DWORD dwDeviceID, LPVOID lpDeviceConfig, DWORD dwSize, LPCSTR lpszDeviceClass)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
2000-05-11 23:48:28 +02:00
|
|
|
FIXME("(%08lx, %p, %08lx, %s): stub.\n", dwDeviceID, lpDeviceConfig, dwSize, lpszDeviceClass);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineSetMediaControl (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineSetMediaControl(
|
|
|
|
HLINE hLine,
|
|
|
|
DWORD dwAddressID,
|
|
|
|
HCALL hCall,
|
|
|
|
DWORD dwSelect,
|
|
|
|
LPLINEMEDIACONTROLDIGIT const lpDigitList,
|
|
|
|
DWORD dwDigitNumEntries,
|
|
|
|
LPLINEMEDIACONTROLMEDIA const lpMediaList,
|
|
|
|
DWORD dwMediaNumEntries,
|
2002-06-01 01:06:46 +02:00
|
|
|
LPLINEMEDIACONTROLTONE const lpToneList,
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD dwToneNumEntries,
|
|
|
|
LPLINEMEDIACONTROLCALLSTATE const lpCallStateList,
|
|
|
|
DWORD dwCallStateNumEntries)
|
|
|
|
{
|
1999-12-08 04:56:23 +01:00
|
|
|
FIXME(": stub.\n");
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineSetMediaMode (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineSetMediaMode(HCALL hCall, DWORD dwMediaModes)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx): stub.\n", hCall, dwMediaModes);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
1999-03-14 13:34:25 +01:00
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineSetNumRings (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineSetNumRings(HLINE hLine, DWORD dwAddressID, DWORD dwNumRings)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %08lx): stub.\n", hLine, dwAddressID, dwNumRings);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineSetStatusMessages (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineSetStatusMessages(HLINE hLine, DWORD dwLineStates, DWORD dwAddressStates)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %08lx): stub.\n", hLine, dwLineStates, dwAddressStates);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineSetTerminal (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineSetTerminal(HLINE hLine, DWORD dwAddressID, HCALL hCall, DWORD dwSelect, DWORD dwTerminalModes, DWORD dwTerminalID, DWORD bEnable)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %p, %08lx, %08lx, %08lx, %08lx): stub.\n", hLine, dwAddressID, hCall, dwSelect, dwTerminalModes, dwTerminalID, bEnable);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
1999-03-14 13:34:25 +01:00
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineSetTollList (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineSetTollListA(HLINEAPP hLineApp, DWORD dwDeviceID, LPCSTR lpszAddressIn, DWORD dwTollListOption)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %s, %08lx): stub.\n", hLineApp, dwDeviceID, lpszAddressIn, dwTollListOption);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineSetupConference (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineSetupConferenceA(HCALL hCall, HLINE hLine, LPHCALL lphConfCall, LPHCALL lphConsultCall, DWORD dwNumParties, LPLINECALLPARAMS lpCallParams)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %p, %p, %p, %08lx, %p): stub.\n", hCall, hLine, lphConfCall, lphConsultCall, dwNumParties, lpCallParams);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineSetupTransfer (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineSetupTransferA(HCALL hCall, LPHCALL lphConsultCall, LPLINECALLPARAMS lpCallParams)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %p, %p): stub.\n", hCall, lphConsultCall, lpCallParams);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
2002-06-01 01:06:46 +02:00
|
|
|
}
|
1999-03-14 13:34:25 +01:00
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineShutdown (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineShutdown(HLINEAPP hLineApp)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p): stub.\n", hLineApp);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineSwapHold (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineSwapHold(HCALL hActiveCall, HCALL hHeldCall)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(active: %p, held: %p): stub.\n", hActiveCall, hHeldCall);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineTranslateAddress (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineTranslateAddressA(HLINEAPP hLineApp, DWORD dwDeviceID, DWORD dwAPIVersion, LPCSTR lpszAddressIn, DWORD dwCard, DWORD dwTranslateOptions, LPLINETRANSLATEOUTPUT lpTranslateOutput)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %08lx, %s, %08lx, %08lx, %p): stub.\n", hLineApp, dwDeviceID, dwAPIVersion, lpszAddressIn, dwCard, dwTranslateOptions, lpTranslateOutput);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineTranslateDialog (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineTranslateDialogA(HLINEAPP hLineApp, DWORD dwDeviceID, DWORD dwAPIVersion, HWND hwndOwner, LPCSTR lpszAddressIn)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %08lx, %p, %s): stub.\n", hLineApp, dwDeviceID, dwAPIVersion, hwndOwner, lpszAddressIn);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineUncompleteCall (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI lineUncompleteCall(HLINE hLine, DWORD dwCompletionID)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx): stub.\n", hLine, dwCompletionID);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineUnhold (TAPI32.@)
|
|
|
|
*/
|
2000-01-01 23:06:18 +01:00
|
|
|
DWORD WINAPI lineUnhold(HCALL hCall)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p): stub.\n", hCall);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* lineUnpark (TAPI32.@)
|
|
|
|
*/
|
2004-10-14 02:28:29 +02:00
|
|
|
DWORD WINAPI lineUnparkA(HLINE hLine, DWORD dwAddressID, LPHCALL lphCall, LPCSTR lpszDestAddress)
|
1999-03-14 13:34:25 +01:00
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %p, %s): stub.\n", hLine, dwAddressID, lphCall, lpszDestAddress);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
2000-03-24 21:46:04 +01:00
|
|
|
}
|