Commit 5aa96c19 authored by Andreas Mohr's avatar Andreas Mohr Committed by Alexandre Julliard

Implemented (nearly) all TAPI functions as stubs.

parent a8486078
...@@ -39,6 +39,7 @@ LIBSUBDIRS = \ ...@@ -39,6 +39,7 @@ LIBSUBDIRS = \
dlls/psapi \ dlls/psapi \
dlls/rasapi32 \ dlls/rasapi32 \
dlls/shell32 \ dlls/shell32 \
dlls/tapi32 \
dlls/ver \ dlls/ver \
dlls/version \ dlls/version \
dlls/winaspi \ dlls/winaspi \
...@@ -112,6 +113,7 @@ LIBOBJS = \ ...@@ -112,6 +113,7 @@ LIBOBJS = \
dlls/psapi/psapi.o \ dlls/psapi/psapi.o \
dlls/rasapi32/rasapi32.o \ dlls/rasapi32/rasapi32.o \
dlls/shell32/shell32.o \ dlls/shell32/shell32.o \
dlls/tapi32/tapi32.o \
dlls/ver/ver.o \ dlls/ver/ver.o \
dlls/version/version.o \ dlls/version/version.o \
dlls/winaspi/winaspi.o \ dlls/winaspi/winaspi.o \
......
...@@ -4607,6 +4607,7 @@ dlls/ntdll/Makefile ...@@ -4607,6 +4607,7 @@ dlls/ntdll/Makefile
dlls/psapi/Makefile dlls/psapi/Makefile
dlls/rasapi32/Makefile dlls/rasapi32/Makefile
dlls/shell32/Makefile dlls/shell32/Makefile
dlls/tapi32/Makefile
dlls/ver/Makefile dlls/ver/Makefile
dlls/version/Makefile dlls/version/Makefile
dlls/winaspi/Makefile dlls/winaspi/Makefile
...@@ -4769,6 +4770,7 @@ dlls/ntdll/Makefile ...@@ -4769,6 +4770,7 @@ dlls/ntdll/Makefile
dlls/psapi/Makefile dlls/psapi/Makefile
dlls/rasapi32/Makefile dlls/rasapi32/Makefile
dlls/shell32/Makefile dlls/shell32/Makefile
dlls/tapi32/Makefile
dlls/ver/Makefile dlls/ver/Makefile
dlls/version/Makefile dlls/version/Makefile
dlls/winaspi/Makefile dlls/winaspi/Makefile
......
...@@ -632,6 +632,7 @@ dlls/ntdll/Makefile ...@@ -632,6 +632,7 @@ dlls/ntdll/Makefile
dlls/psapi/Makefile dlls/psapi/Makefile
dlls/rasapi32/Makefile dlls/rasapi32/Makefile
dlls/shell32/Makefile dlls/shell32/Makefile
dlls/tapi32/Makefile
dlls/ver/Makefile dlls/ver/Makefile
dlls/version/Makefile dlls/version/Makefile
dlls/winaspi/Makefile dlls/winaspi/Makefile
......
...@@ -9,6 +9,7 @@ SUBDIRS = \ ...@@ -9,6 +9,7 @@ SUBDIRS = \
ntdll \ ntdll \
psapi \ psapi \
shell32 \ shell32 \
tapi32 \
ver \ ver \
version \ version \
winaspi \ winaspi \
......
DEFS = @DLLFLAGS@ -D__WINE__
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = tapi32
C_SRCS = \
assisted.c \
line.c \
phone.c
all: $(MODULE).o
@MAKE_RULES@
### Dependencies:
/*
* TAPI32 Assisted Telephony
*
* Copyright 1999 Andreas Mohr
*/
#include "winbase.h"
#include "wintypes.h"
#include "tapi.h"
#include "debug.h"
DWORD WINAPI tapiGetLocationInfo(LPSTR lpszCountryCode, LPSTR lpszCityCode)
{
char temp[30];
FIXME(tapi, "(%s, %s): file sections ???\n", lpszCountryCode, lpszCityCode);
if (!(GetPrivateProfileStringA("Locations", "CurrentLocation", "", temp, 30, "telephon.ini")))
return TAPIERR_REQUESTFAILED;
if (!(GetPrivateProfileStringA("Locations", "FIXME_ENTRY", "", lpszCityCode, 8, "telephon.ini")))
return TAPIERR_REQUESTFAILED;
return 0;
}
DWORD WINAPI tapiRequestMakeCall(LPCSTR lpszDestAddress, LPCSTR lpszAppName,
LPCSTR lpszCalledParty, LPCSTR lpszComment)
{
FIXME(tapi, "(%s, %s, %s, %s): stub.\n", lpszDestAddress, lpszAppName, lpszCalledParty, lpszComment);
return 0;
}
/*
* TAPI32 phone services
*
* Copyright 1999 Andreas Mohr
*/
#include "winbase.h"
#include "wintypes.h"
#include "tapi.h"
#include "debug.h"
static LPPHONE PHONE_Alloc(void)
{
}
static LPPHONE PHONE_Get(HPHONE hPhone)
{
}
DWORD WINAPI phoneClose(HPHONE hPhone)
{
FIXME(tapi, "(%04x), stub.\n", hPhone);
return 0;
}
DWORD WINAPI phoneConfigDialog(DWORD dwDeviceID, HWND hwndOwner, LPCSTR lpszDeviceClass)
{
FIXME(tapi, "(%08lx, %04x, %s): stub.\n", dwDeviceID, hwndOwner, lpszDeviceClass);
return 0;
}
DWORD WINAPI phoneDevSpecific(HPHONE hPhone, LPVOID lpParams, DWORD dwSize)
{
FIXME(tapi, "(%04x, %p, %08ld): stub.\n", hPhone, lpParams, dwSize);
return 1;
}
DWORD WINAPI phoneGetButtonInfo(HPHONE hPhone, DWORD dwButtonLampID,
LPPHONEBUTTONINFO lpButtonInfo)
{
FIXME(tapi, "(%04x, %08lx, %p): stub.\n", hPhone, dwButtonLampID, lpButtonInfo);
return 0;
}
DWORD WINAPI phoneGetData(HPHONE hPhone, DWORD dwDataID, LPVOID lpData, DWORD dwSize)
{
FIXME(tapi, "(%04x, %08ld, %p, %08ld): stub.\n", hPhone, dwDataID, lpData, dwSize);
return 0;
}
DWORD WINAPI phoneGetDevCaps(HPHONEAPP hPhoneApp, DWORD dwDeviceID,
DWORD dwAPIVersion, DWORD dwExtVersion, LPPHONECAPS lpPhoneCaps)
{
FIXME(tapi, "(%04x, %08ld, %08lx, %08lx, %p): stub.\n", hPhoneApp, dwDeviceID, dwAPIVersion, dwExtVersion, lpPhoneCaps);
return 0;
}
DWORD WINAPI phoneGetDisplay(HPHONE hPhone, LPVARSTRING lpDisplay)
{
FIXME(tapi, "(%04x, %p): stub.\n", hPhone, lpDisplay);
return 0;
}
DWORD WINAPI phoneGetGain(HPHONE hPhone, DWORD dwHookSwitchDev, LPDWORD lpdwGain)
{
FIXME(tapi, "(%04x, %08lx, %p): stub.\n", hPhone, dwHookSwitchDev, lpdwGain);
return 0;
}
DWORD WINAPI phoneGetHookSwitch(HPHONE hPhone, LPDWORD lpdwHookSwitchDevs)
{
FIXME(tapi, "(%04x, %p): stub.\n", hPhone, lpdwHookSwitchDevs);
return 0;
}
DWORD WINAPI phoneGetID(HPHONE hPhone, LPVARSTRING lpDeviceID,
LPCSTR lpszDeviceClass)
{
FIXME(tapi, "(%04x, %p, %s): stub.\n", hPhone, lpDeviceID, lpszDeviceClass); return 0;
}
DWORD WINAPI phoneGetIcon(DWORD dwDeviceID, LPCSTR lpszDeviceClass,
HICON *lphIcon)
{
FIXME(tapi, "(%08lx, %s, %p): stub.\n", dwDeviceID, lpszDeviceClass, lphIcon);
return 0;
}
DWORD WINAPI phoneGetLamp(HPHONE hPhone, DWORD dwButtonLampID,
LPDWORD lpdwLampMode)
{
FIXME(tapi, "(%04x, %08lx, %p): stub.\n", hPhone, dwButtonLampID, lpdwLampMode);
return 0;
}
DWORD WINAPI phoneGetRing(HPHONE hPhone, LPDWORD lpdwRingMode, LPDWORD lpdwVolume)
{
FIXME(tapi, "(%04x, %p, %p): stub.\n", hPhone, lpdwRingMode, lpdwVolume);
return 0;
}
DWORD WINAPI phoneGetStatus(HPHONE hPhone, LPPHONESTATUS lpPhoneStatus)
{
FIXME(tapi, "(%04x, %p): stub.\n", hPhone, lpPhoneStatus);
return 0;
}
DWORD WINAPI phoneGetStatusMessages(HPHONE hPhone, LPDWORD lpdwPhoneStates,
LPDWORD lpdwButtonModes, LPDWORD lpdwButtonStates)
{
FIXME(tapi, "(%04x, %p, %p, %p): stub.\n", hPhone, lpdwPhoneStates, lpdwButtonModes, lpdwButtonStates);
return 0;
}
DWORD WINAPI phoneGetVolume(HPHONE hPhone, DWORD dwHookSwitchDevs,
LPDWORD lpdwVolume)
{
FIXME(tapi, "(%04x, %08lx, %p): stub.\n", hPhone, dwHookSwitchDevs, lpdwVolume);
return 0;
}
DWORD WINAPI phoneInitialize(LPHPHONEAPP lphPhoneApp, HINSTANCE hInstance, PHONECALLBACK lpfnCallback, LPCSTR lpszAppName, LPDWORD lpdwNumDevs)
{
FIXME(tapi, "(%p, %04x, %p, %s, %p): stub.\n", lphPhoneApp, hInstance, lpfnCallback, lpszAppName, lpdwNumDevs);
return 0;
}
DWORD WINAPI phoneNegotiateAPIVersion(HPHONEAPP hPhoneApp, DWORD dwDeviceID, DWORD dwAPILowVersion, DWORD dwAPIHighVersion, LPDWORD lpdwAPIVersion, LPPHONEEXTENSIONID lpExtensionID)
{
FIXME(tapi, "(): stub.\n");
return 0;
}
DWORD WINAPI phoneNegotiateExtVersion(HPHONEAPP hPhoneApp, DWORD dwDeviceID,
DWORD dwAPIVersion, DWORD dwExtLowVersion,
DWORD dwExtHighVersion, LPDWORD lpdwExtVersion)
{
FIXME(tapi, "(): stub.\n");
return 0;
}
DWORD WINAPI phoneOpen(HPHONEAPP hPhoneApp, DWORD dwDeviceID, LPHPHONE lphPhone, DWORD dwAPIVersion, DWORD dwExtVersion, DWORD dwCallbackInstance, DWORD dwPrivileges)
{
FIXME(tapi, "(): stub.\n");
return 0;
}
DWORD WINAPI phoneSetButtonInfo(HPHONE hPhone, DWORD dwButtonLampID, LPPHONEBUTTONINFO lpButtonInfo)
{
FIXME(tapi, "(%04x, %08lx, %p): stub.\n", hPhone, dwButtonLampID, lpButtonInfo);
return 0;
}
DWORD WINAPI phoneSetData(HPHONE hPhone, DWORD dwDataID, LPVOID lpData, DWORD dwSize)
{
FIXME(tapi, "(%04x, %08lx, %p, %ld): stub.\n", hPhone, dwDataID, lpData, dwSize);
return 1;
}
DWORD WINAPI phoneSetDisplay(HPHONE hPhone, DWORD dwRow, DWORD dwColumn, LPCSTR lpszDisplay, DWORD dwSize)
{
FIXME(tapi, "(%04x, '%s' at %ld/%ld, len %ld): stub.\n", hPhone, lpszDisplay, dwRow, dwColumn, dwSize);
return 1;
}
DWORD WINAPI phoneSetGain(HPHONE hPhone, DWORD dwHookSwitchDev, DWORD dwGain)
{
FIXME(tapi, "(%04x, %08lx, %ld): stub.\n", hPhone, dwHookSwitchDev, dwGain);
return 1;
}
DWORD WINAPI phoneSetHookSwitch(HPHONE hPhone, DWORD dwHookSwitchDevs, DWORD dwHookSwitchMode)
{
FIXME(tapi, "(%04x, %08lx, %08lx): stub.\n", hPhone, dwHookSwitchDevs, dwHookSwitchMode);
return 1;
}
DWORD WINAPI phoneSetLamp(HPHONE hPhone, DWORD dwButtonLampID, DWORD lpdwLampMode)
{
FIXME(tapi, "(%04x, %08lx, %08lx): stub.\n", hPhone, dwButtonLampID, lpdwLampMode);
return 1;
}
DWORD WINAPI phoneSetRing(HPHONE hPhone, DWORD dwRingMode, DWORD dwVolume)
{
FIXME(tapi, "(%04x, %08lx, %08ld): stub.\n", hPhone, dwRingMode, dwVolume);
return 1;
}
DWORD WINAPI phoneSetStatusMessages(HPHONE hPhone, DWORD dwPhoneStates, DWORD dwButtonModes, DWORD dwButtonStates)
{
FIXME(tapi, "(%04x, %08lx, %08lx, %08lx): stub.\n", hPhone, dwPhoneStates, dwButtonModes, dwButtonStates);
return 0; /* FIXME ? */
}
DWORD WINAPI phoneSetVolume(HPHONE hPhone, DWORD dwHookSwitchDev, DWORD dwVolume)
{
FIXME(tapi, "(%04x, %08lx, %08ld): stub.\n", hPhone, dwHookSwitchDev, dwVolume);
return 1;
}
DWORD WINAPI phoneShutdown(HPHONEAPP hPhoneApp)
{
FIXME(tapi, "(%04x): stub.\n", hPhoneApp);
return 0;
}
...@@ -131,33 +131,34 @@ ...@@ -131,33 +131,34 @@
#define dbch_syscolor 123 #define dbch_syscolor 123
#define dbch_system 124 #define dbch_system 124
#define dbch_tab 125 #define dbch_tab 125
#define dbch_task 126 #define dbch_tapi 126
#define dbch_text 127 #define dbch_task 127
#define dbch_thread 128 #define dbch_text 128
#define dbch_thunk 129 #define dbch_thread 129
#define dbch_timer 130 #define dbch_thunk 130
#define dbch_toolbar 131 #define dbch_timer 131
#define dbch_toolhelp 132 #define dbch_toolbar 132
#define dbch_tooltips 133 #define dbch_toolhelp 133
#define dbch_trackbar 134 #define dbch_tooltips 134
#define dbch_treeview 135 #define dbch_trackbar 135
#define dbch_ttydrv 136 #define dbch_treeview 136
#define dbch_tweak 137 #define dbch_ttydrv 137
#define dbch_uitools 138 #define dbch_tweak 138
#define dbch_unknown 139 #define dbch_uitools 139
#define dbch_updown 140 #define dbch_unknown 140
#define dbch_ver 141 #define dbch_updown 141
#define dbch_virtual 142 #define dbch_ver 142
#define dbch_vxd 143 #define dbch_virtual 143
#define dbch_wave 144 #define dbch_vxd 144
#define dbch_win 145 #define dbch_wave 145
#define dbch_win16drv 146 #define dbch_win 146
#define dbch_win32 147 #define dbch_win16drv 147
#define dbch_wing 148 #define dbch_win32 148
#define dbch_winsock 149 #define dbch_wing 149
#define dbch_wnet 150 #define dbch_winsock 150
#define dbch_x11 151 #define dbch_wnet 151
#define dbch_x11drv 152 #define dbch_x11 152
#define dbch_x11drv 153
/* Definitions for classes identifiers */ /* Definitions for classes identifiers */
#define dbcl_fixme 0 #define dbcl_fixme 0
#define dbcl_err 1 #define dbcl_err 1
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include "debugtools.h" #include "debugtools.h"
#endif #endif
#define DEBUG_CHANNEL_COUNT 153 #define DEBUG_CHANNEL_COUNT 154
#ifdef DEBUG_RUNTIME #ifdef DEBUG_RUNTIME
short debug_msg_enabled[][DEBUG_CLASS_COUNT] = { short debug_msg_enabled[][DEBUG_CLASS_COUNT] = {
{1, 1, 0, 0}, {1, 1, 0, 0},
...@@ -160,6 +160,7 @@ short debug_msg_enabled[][DEBUG_CLASS_COUNT] = { ...@@ -160,6 +160,7 @@ short debug_msg_enabled[][DEBUG_CLASS_COUNT] = {
{1, 1, 0, 0}, {1, 1, 0, 0},
{1, 1, 0, 0}, {1, 1, 0, 0},
{1, 1, 0, 0}, {1, 1, 0, 0},
{1, 1, 0, 0},
}; };
const char* debug_ch_name[] = { const char* debug_ch_name[] = {
"accel", "accel",
...@@ -288,6 +289,7 @@ const char* debug_ch_name[] = { ...@@ -288,6 +289,7 @@ const char* debug_ch_name[] = {
"syscolor", "syscolor",
"system", "system",
"tab", "tab",
"tapi",
"task", "task",
"text", "text",
"thread", "thread",
......
This diff is collapsed. Click to expand it.
...@@ -29,7 +29,6 @@ C_SRCS = \ ...@@ -29,7 +29,6 @@ C_SRCS = \
stress.c \ stress.c \
string.c \ string.c \
system.c \ system.c \
tapi32.c \
toolhelp.c \ toolhelp.c \
tweak.c \ tweak.c \
version.c \ version.c \
......
/*
* TAPI32
*
* Copyright (c) 1998 Andreas Mohr
*/
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "wintypes.h"
#include "debug.h"
UINT WINAPI lineInitialize(
LPVOID lphLineApp, /* FIXME */
HINSTANCE hInstance,
LPVOID lpfnCallback, /* FIXME */
LPCSTR lpszAppName,
LPDWORD lpdwNumDevs)
{
FIXME(comm, "stub.\n");
return 0;
}
UINT WINAPI lineShutdown( HANDLE hLineApp ) /* FIXME */
{
FIXME(comm, "stub.\n");
return 0;
}
UINT WINAPI lineNegotiateAPIVersion(
HANDLE hLineApp, /* FIXME */
DWORD dwDeviceID,
DWORD dwAPILowVersion,
DWORD dwAPIHighVersion,
LPDWORD lpdwAPIVersion,
LPVOID lpExtensionID /* FIXME */
)
{
FIXME(comm, "stub.\n");
*lpdwAPIVersion = dwAPIHighVersion;
return 0;
}
/*************************************************************************
* lineRedirect32 [TAPI32.53]
*
*/
LONG WINAPI lineRedirect(
HANDLE* hCall,
LPCSTR lpszDestAddress,
DWORD dwCountryCode) {
FIXME(comm, ": stub.\n");
return -1;
/* return LINEERR_OPERATIONFAILED; */
}
/*************************************************************************
* tapiRequestMakeCall32 [TAPI32.113]
*
*/
LONG WINAPI tapiRequestMakeCall(
LPCSTR lpszDestAddress,
LPCSTR lpszAppName,
LPCSTR lpszCalledParty,
LPCSTR lpszComment) {
FIXME(comm, ": stub.\n");
return -1;
/* return TAPIERR_REQUESTQUEUEFULL; */
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment