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)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%04x), 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)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%08lx, %04x, %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)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%04x, %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)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%04x, %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)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%04x, %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)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%04x, %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)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%04x, %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)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%04x, %08lx, %p): stub.\n", hPhone, dwHookSwitchDev, lpdwGain);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
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)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%04x, %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)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%04x, %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)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%04x, %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)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%04x, %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)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%04x, %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)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%04x, %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)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%04x, %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)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%p, %04x, %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)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%04x, %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)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%04x, %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)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%04x, '%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)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%04x, %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)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%04x, %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)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%04x, %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)
|
|
|
|
{
|
2000-05-11 23:48:28 +02:00
|
|
|
FIXME("(%04x, %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)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%04x, %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)
|
|
|
|
{
|
2000-05-11 23:48:28 +02:00
|
|
|
FIXME("(%04x, %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)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%04x): stub.\n", hPhoneApp);
|
1999-03-14 13:34:25 +01:00
|
|
|
return 0;
|
|
|
|
}
|