1999-03-14 13:34:25 +01:00
|
|
|
/*
|
|
|
|
* TAPI32 phone 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
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
1999-03-14 13:34:25 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "winbase.h"
|
1999-03-14 17:35:05 +01:00
|
|
|
#include "windef.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
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* phoneClose (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI phoneClose(HPHONE hPhone)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p), stub.\n", hPhone);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* phoneConfigDialog (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI phoneConfigDialog(DWORD dwDeviceID, HWND hwndOwner, LPCSTR lpszDeviceClass)
|
|
|
|
{
|
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;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* phoneDevSpecific (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI phoneDevSpecific(HPHONE hPhone, LPVOID lpParams, DWORD dwSize)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %p, %08ld): stub.\n", hPhone, lpParams, dwSize);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* phoneGetButtonInfo (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI phoneGetButtonInfo(HPHONE hPhone, DWORD dwButtonLampID,
|
|
|
|
LPPHONEBUTTONINFO lpButtonInfo)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %p): stub.\n", hPhone, dwButtonLampID, lpButtonInfo);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* phoneGetData (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI phoneGetData(HPHONE hPhone, DWORD dwDataID, LPVOID lpData, DWORD dwSize)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08ld, %p, %08ld): stub.\n", hPhone, dwDataID, lpData, dwSize);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* phoneGetDevCaps (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI phoneGetDevCaps(HPHONEAPP hPhoneApp, DWORD dwDeviceID,
|
|
|
|
DWORD dwAPIVersion, DWORD dwExtVersion, LPPHONECAPS lpPhoneCaps)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08ld, %08lx, %08lx, %p): stub.\n", hPhoneApp, dwDeviceID, dwAPIVersion, dwExtVersion, lpPhoneCaps);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* phoneGetDisplay (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI phoneGetDisplay(HPHONE hPhone, LPVARSTRING lpDisplay)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %p): stub.\n", hPhone, lpDisplay);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* phoneGetGain (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI phoneGetGain(HPHONE hPhone, DWORD dwHookSwitchDev, LPDWORD lpdwGain)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %p): stub.\n", hPhone, dwHookSwitchDev, lpdwGain);
|
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
|
|
|
/***********************************************************************
|
|
|
|
* phoneGetHookSwitch (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI phoneGetHookSwitch(HPHONE hPhone, LPDWORD lpdwHookSwitchDevs)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %p): stub.\n", hPhone, lpdwHookSwitchDevs);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* phoneGetID (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI phoneGetID(HPHONE hPhone, LPVARSTRING lpDeviceID,
|
|
|
|
LPCSTR lpszDeviceClass)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %p, %s): stub.\n", hPhone, lpDeviceID, lpszDeviceClass); return 0;
|
1999-03-14 13:34:25 +01:00
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* phoneGetIcon (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI phoneGetIcon(DWORD dwDeviceID, LPCSTR lpszDeviceClass,
|
|
|
|
HICON *lphIcon)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%08lx, %s, %p): stub.\n", dwDeviceID, lpszDeviceClass, lphIcon);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* phoneGetLamp (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI phoneGetLamp(HPHONE hPhone, DWORD dwButtonLampID,
|
|
|
|
LPDWORD lpdwLampMode)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %p): stub.\n", hPhone, dwButtonLampID, lpdwLampMode);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* phoneGetRing (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI phoneGetRing(HPHONE hPhone, LPDWORD lpdwRingMode, LPDWORD lpdwVolume)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %p, %p): stub.\n", hPhone, lpdwRingMode, lpdwVolume);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* phoneGetStatus (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI phoneGetStatus(HPHONE hPhone, LPPHONESTATUS lpPhoneStatus)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %p): stub.\n", hPhone, lpPhoneStatus);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* phoneGetStatusMessages (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI phoneGetStatusMessages(HPHONE hPhone, LPDWORD lpdwPhoneStates,
|
|
|
|
LPDWORD lpdwButtonModes, LPDWORD lpdwButtonStates)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %p, %p, %p): stub.\n", hPhone, lpdwPhoneStates, lpdwButtonModes, lpdwButtonStates);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* phoneGetVolume (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI phoneGetVolume(HPHONE hPhone, DWORD dwHookSwitchDevs,
|
|
|
|
LPDWORD lpdwVolume)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %p): stub.\n", hPhone, dwHookSwitchDevs, lpdwVolume);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* phoneInitialize (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI phoneInitialize(LPHPHONEAPP lphPhoneApp, HINSTANCE hInstance, PHONECALLBACK lpfnCallback, LPCSTR lpszAppName, LPDWORD lpdwNumDevs)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %p, %p, %s, %p): stub.\n", lphPhoneApp, hInstance, lpfnCallback, lpszAppName, lpdwNumDevs);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* phoneNegotiateAPIVersion (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI phoneNegotiateAPIVersion(HPHONEAPP hPhoneApp, DWORD dwDeviceID, DWORD dwAPILowVersion, DWORD dwAPIHighVersion, LPDWORD lpdwAPIVersion, LPPHONEEXTENSIONID lpExtensionID)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(): stub.\n");
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* phoneNegotiateExtVersion (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI phoneNegotiateExtVersion(HPHONEAPP hPhoneApp, DWORD dwDeviceID,
|
|
|
|
DWORD dwAPIVersion, DWORD dwExtLowVersion,
|
|
|
|
DWORD dwExtHighVersion, LPDWORD lpdwExtVersion)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(): stub.\n");
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* phoneOpen (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI phoneOpen(HPHONEAPP hPhoneApp, DWORD dwDeviceID, LPHPHONE lphPhone, DWORD dwAPIVersion, DWORD dwExtVersion, DWORD dwCallbackInstance, DWORD dwPrivileges)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(): stub.\n");
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* phoneSetButtonInfo (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI phoneSetButtonInfo(HPHONE hPhone, DWORD dwButtonLampID, LPPHONEBUTTONINFO lpButtonInfo)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %p): stub.\n", hPhone, dwButtonLampID, lpButtonInfo);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* phoneSetData (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI phoneSetData(HPHONE hPhone, DWORD dwDataID, LPVOID lpData, DWORD dwSize)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %p, %ld): stub.\n", hPhone, dwDataID, lpData, dwSize);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* phoneSetDisplay (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI phoneSetDisplay(HPHONE hPhone, DWORD dwRow, DWORD dwColumn, LPCSTR lpszDisplay, DWORD dwSize)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, '%s' at %ld/%ld, len %ld): stub.\n", hPhone, lpszDisplay, dwRow, dwColumn, dwSize);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* phoneSetGain (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI phoneSetGain(HPHONE hPhone, DWORD dwHookSwitchDev, DWORD dwGain)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %ld): stub.\n", hPhone, dwHookSwitchDev, dwGain);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* phoneSetHookSwitch (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI phoneSetHookSwitch(HPHONE hPhone, DWORD dwHookSwitchDevs, DWORD dwHookSwitchMode)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %08lx): stub.\n", hPhone, dwHookSwitchDevs, dwHookSwitchMode);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* phoneSetLamp (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI phoneSetLamp(HPHONE hPhone, DWORD dwButtonLampID, DWORD lpdwLampMode)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %08lx): stub.\n", hPhone, dwButtonLampID, lpdwLampMode);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* phoneSetRing (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI phoneSetRing(HPHONE hPhone, DWORD dwRingMode, DWORD dwVolume)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %08lx): stub.\n", hPhone, dwRingMode, dwVolume);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* phoneSetStatusMessages (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI phoneSetStatusMessages(HPHONE hPhone, DWORD dwPhoneStates, DWORD dwButtonModes, DWORD dwButtonStates)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %08lx, %08lx): stub.\n", hPhone, dwPhoneStates, dwButtonModes, dwButtonStates);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0; /* FIXME ? */
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* phoneSetVolume (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI phoneSetVolume(HPHONE hPhone, DWORD dwHookSwitchDev, DWORD dwVolume)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p, %08lx, %08lx): stub.\n", hPhone, dwHookSwitchDev, dwVolume);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2000-03-24 21:46:04 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* phoneShutdown (TAPI32.@)
|
|
|
|
*/
|
1999-03-14 13:34:25 +01:00
|
|
|
DWORD WINAPI phoneShutdown(HPHONEAPP hPhoneApp)
|
|
|
|
{
|
2002-10-22 02:47:08 +02:00
|
|
|
FIXME("(%p): stub.\n", hPhoneApp);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|