ReactOS  0.4.15-dev-3017-g1d9542d
phone.c File Reference
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "objbase.h"
#include "tapi.h"
#include "wine/debug.h"
Include dependency graph for phone.c:

Go to the source code of this file.

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (tapi)
 
DWORD WINAPI phoneClose (HPHONE hPhone)
 
DWORD WINAPI phoneConfigDialogA (DWORD dwDeviceID, HWND hwndOwner, LPCSTR lpszDeviceClass)
 
DWORD WINAPI phoneDevSpecific (HPHONE hPhone, LPVOID lpParams, DWORD dwSize)
 
DWORD WINAPI phoneGetButtonInfoA (HPHONE hPhone, DWORD dwButtonLampID, LPPHONEBUTTONINFO lpButtonInfo)
 
DWORD WINAPI phoneGetData (HPHONE hPhone, DWORD dwDataID, LPVOID lpData, DWORD dwSize)
 
DWORD WINAPI phoneGetDevCapsA (HPHONEAPP hPhoneApp, DWORD dwDeviceID, DWORD dwAPIVersion, DWORD dwExtVersion, LPPHONECAPS lpPhoneCaps)
 
DWORD WINAPI phoneGetDisplay (HPHONE hPhone, LPVARSTRING lpDisplay)
 
DWORD WINAPI phoneGetGain (HPHONE hPhone, DWORD dwHookSwitchDev, LPDWORD lpdwGain)
 
DWORD WINAPI phoneGetHookSwitch (HPHONE hPhone, LPDWORD lpdwHookSwitchDevs)
 
DWORD WINAPI phoneGetIDA (HPHONE hPhone, LPVARSTRING lpDeviceID, LPCSTR lpszDeviceClass)
 
DWORD WINAPI phoneGetIconA (DWORD dwDeviceID, LPCSTR lpszDeviceClass, HICON *lphIcon)
 
DWORD WINAPI phoneGetLamp (HPHONE hPhone, DWORD dwButtonLampID, LPDWORD lpdwLampMode)
 
DWORD WINAPI phoneGetMessage (HPHONEAPP hPhoneApp, LPPHONEMESSAGE lpMessage, DWORD dwTimeout)
 
DWORD WINAPI phoneGetRing (HPHONE hPhone, LPDWORD lpdwRingMode, LPDWORD lpdwVolume)
 
DWORD WINAPI phoneGetStatusA (HPHONE hPhone, LPPHONESTATUS lpPhoneStatus)
 
DWORD WINAPI phoneGetStatusMessages (HPHONE hPhone, LPDWORD lpdwPhoneStates, LPDWORD lpdwButtonModes, LPDWORD lpdwButtonStates)
 
DWORD WINAPI phoneGetVolume (HPHONE hPhone, DWORD dwHookSwitchDevs, LPDWORD lpdwVolume)
 
DWORD WINAPI phoneInitialize (LPHPHONEAPP lphPhoneApp, HINSTANCE hInstance, PHONECALLBACK lpfnCallback, LPCSTR lpszAppName, LPDWORD lpdwNumDevs)
 
DWORD WINAPI phoneInitializeExA (LPHPHONEAPP lphPhoneApp, HINSTANCE hInstance, PHONECALLBACK lpfnCallback, LPCSTR lpszAppName, LPDWORD lpdwNumDevs, LPDWORD lpdwAPIVersion, LPPHONEINITIALIZEEXPARAMS lpPhoneInitializeExParams)
 
DWORD WINAPI phoneInitializeExW (LPHPHONEAPP lphPhoneApp, HINSTANCE hInstance, PHONECALLBACK lpfnCallback, LPCWSTR lpszAppName, LPDWORD lpdwNumDevs, LPDWORD lpdwAPIVersion, LPPHONEINITIALIZEEXPARAMS lpPhoneInitializeExParams)
 
DWORD WINAPI phoneNegotiateAPIVersion (HPHONEAPP hPhoneApp, DWORD dwDeviceID, DWORD dwAPILowVersion, DWORD dwAPIHighVersion, LPDWORD lpdwAPIVersion, LPPHONEEXTENSIONID lpExtensionID)
 
DWORD WINAPI phoneNegotiateExtVersion (HPHONEAPP hPhoneApp, DWORD dwDeviceID, DWORD dwAPIVersion, DWORD dwExtLowVersion, DWORD dwExtHighVersion, LPDWORD lpdwExtVersion)
 
DWORD WINAPI phoneOpen (HPHONEAPP hPhoneApp, DWORD dwDeviceID, LPHPHONE lphPhone, DWORD dwAPIVersion, DWORD dwExtVersion, DWORD dwCallbackInstance, DWORD dwPrivileges)
 
DWORD WINAPI phoneSetButtonInfoA (HPHONE hPhone, DWORD dwButtonLampID, LPPHONEBUTTONINFO lpButtonInfo)
 
DWORD WINAPI phoneSetData (HPHONE hPhone, DWORD dwDataID, LPVOID lpData, DWORD dwSize)
 
DWORD WINAPI phoneSetDisplay (HPHONE hPhone, DWORD dwRow, DWORD dwColumn, LPCSTR lpszDisplay, DWORD dwSize)
 
DWORD WINAPI phoneSetGain (HPHONE hPhone, DWORD dwHookSwitchDev, DWORD dwGain)
 
DWORD WINAPI phoneSetHookSwitch (HPHONE hPhone, DWORD dwHookSwitchDevs, DWORD dwHookSwitchMode)
 
DWORD WINAPI phoneSetLamp (HPHONE hPhone, DWORD dwButtonLampID, DWORD lpdwLampMode)
 
DWORD WINAPI phoneSetRing (HPHONE hPhone, DWORD dwRingMode, DWORD dwVolume)
 
DWORD WINAPI phoneSetStatusMessages (HPHONE hPhone, DWORD dwPhoneStates, DWORD dwButtonModes, DWORD dwButtonStates)
 
DWORD WINAPI phoneSetVolume (HPHONE hPhone, DWORD dwHookSwitchDev, DWORD dwVolume)
 
DWORD WINAPI phoneShutdown (HPHONEAPP hPhoneApp)
 

Function Documentation

◆ phoneClose()

DWORD WINAPI phoneClose ( HPHONE  hPhone)

Definition at line 42 of file phone.c.

43 {
44  FIXME("(%p), stub.\n", hPhone);
45  /* call TSPI function here ! */
46  return 0;
47 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ phoneConfigDialogA()

DWORD WINAPI phoneConfigDialogA ( DWORD  dwDeviceID,
HWND  hwndOwner,
LPCSTR  lpszDeviceClass 
)

Definition at line 52 of file phone.c.

53 {
54  FIXME("(%08x, %p, %s): stub.\n", dwDeviceID, hwndOwner, lpszDeviceClass);
55  return 0;
56 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ phoneDevSpecific()

DWORD WINAPI phoneDevSpecific ( HPHONE  hPhone,
LPVOID  lpParams,
DWORD  dwSize 
)

Definition at line 61 of file phone.c.

62 {
63  FIXME("(%p, %p, %d): stub.\n", hPhone, lpParams, dwSize);
64  return 1;
65 }
#define FIXME(fmt,...)
Definition: debug.h:111
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
Definition: env.c:56

◆ phoneGetButtonInfoA()

DWORD WINAPI phoneGetButtonInfoA ( HPHONE  hPhone,
DWORD  dwButtonLampID,
LPPHONEBUTTONINFO  lpButtonInfo 
)

Definition at line 70 of file phone.c.

72 {
73  FIXME("(%p, %08x, %p): stub.\n", hPhone, dwButtonLampID, lpButtonInfo);
74  return 0;
75 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ phoneGetData()

DWORD WINAPI phoneGetData ( HPHONE  hPhone,
DWORD  dwDataID,
LPVOID  lpData,
DWORD  dwSize 
)

Definition at line 80 of file phone.c.

81 {
82  FIXME("(%p, %08x, %p, %d): stub.\n", hPhone, dwDataID, lpData, dwSize);
83  return 0;
84 }
#define FIXME(fmt,...)
Definition: debug.h:111
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
Definition: env.c:56

◆ phoneGetDevCapsA()

DWORD WINAPI phoneGetDevCapsA ( HPHONEAPP  hPhoneApp,
DWORD  dwDeviceID,
DWORD  dwAPIVersion,
DWORD  dwExtVersion,
LPPHONECAPS  lpPhoneCaps 
)

Definition at line 89 of file phone.c.

91 {
92  FIXME("(%p, %08x, %08x, %08x, %p): stub.\n", hPhoneApp, dwDeviceID, dwAPIVersion, dwExtVersion, lpPhoneCaps);
93  /* call TSPI function here ! */
94  return 0;
95 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ phoneGetDisplay()

DWORD WINAPI phoneGetDisplay ( HPHONE  hPhone,
LPVARSTRING  lpDisplay 
)

Definition at line 100 of file phone.c.

101 {
102  FIXME("(%p, %p): stub.\n", hPhone, lpDisplay);
103  return 0;
104 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ phoneGetGain()

DWORD WINAPI phoneGetGain ( HPHONE  hPhone,
DWORD  dwHookSwitchDev,
LPDWORD  lpdwGain 
)

Definition at line 109 of file phone.c.

110 {
111  FIXME("(%p, %08x, %p): stub.\n", hPhone, dwHookSwitchDev, lpdwGain);
112  /* call TSPI function here ! */
113  return 0;
114 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ phoneGetHookSwitch()

DWORD WINAPI phoneGetHookSwitch ( HPHONE  hPhone,
LPDWORD  lpdwHookSwitchDevs 
)

Definition at line 119 of file phone.c.

120 {
121  FIXME("(%p, %p): stub.\n", hPhone, lpdwHookSwitchDevs);
122  /* call TSPI function here ! */
123  return 0;
124 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ phoneGetIconA()

DWORD WINAPI phoneGetIconA ( DWORD  dwDeviceID,
LPCSTR  lpszDeviceClass,
HICON lphIcon 
)

Definition at line 140 of file phone.c.

142 {
143  FIXME("(%08x, %s, %p): stub.\n", dwDeviceID, lpszDeviceClass, lphIcon);
144  /* call TSPI function here ! */
145  return 0;
146 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ phoneGetIDA()

DWORD WINAPI phoneGetIDA ( HPHONE  hPhone,
LPVARSTRING  lpDeviceID,
LPCSTR  lpszDeviceClass 
)

Definition at line 129 of file phone.c.

131 {
132  FIXME("(%p, %p, %s): stub.\n", hPhone, lpDeviceID, lpszDeviceClass);
133  /* call TSPI function here ! */
134  return 0;
135 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ phoneGetLamp()

DWORD WINAPI phoneGetLamp ( HPHONE  hPhone,
DWORD  dwButtonLampID,
LPDWORD  lpdwLampMode 
)

Definition at line 151 of file phone.c.

153 {
154  FIXME("(%p, %08x, %p): stub.\n", hPhone, dwButtonLampID, lpdwLampMode);
155  return 0;
156 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ phoneGetMessage()

DWORD WINAPI phoneGetMessage ( HPHONEAPP  hPhoneApp,
LPPHONEMESSAGE  lpMessage,
DWORD  dwTimeout 
)

Definition at line 161 of file phone.c.

162 {
163  FIXME("(%p, %p, %08x): stub.\n", hPhoneApp, lpMessage, dwTimeout);
164  return 0;
165 }
#define FIXME(fmt,...)
Definition: debug.h:111
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD dwTimeout
Definition: wincrypt.h:6077

◆ phoneGetRing()

DWORD WINAPI phoneGetRing ( HPHONE  hPhone,
LPDWORD  lpdwRingMode,
LPDWORD  lpdwVolume 
)

Definition at line 170 of file phone.c.

171 {
172  FIXME("(%p, %p, %p): stub.\n", hPhone, lpdwRingMode, lpdwVolume);
173  return 0;
174 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ phoneGetStatusA()

DWORD WINAPI phoneGetStatusA ( HPHONE  hPhone,
LPPHONESTATUS  lpPhoneStatus 
)

Definition at line 179 of file phone.c.

180 {
181  FIXME("(%p, %p): stub.\n", hPhone, lpPhoneStatus);
182  /* call TSPI function here ! */
183  return 0;
184 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ phoneGetStatusMessages()

DWORD WINAPI phoneGetStatusMessages ( HPHONE  hPhone,
LPDWORD  lpdwPhoneStates,
LPDWORD  lpdwButtonModes,
LPDWORD  lpdwButtonStates 
)

Definition at line 189 of file phone.c.

191 {
192  FIXME("(%p, %p, %p, %p): stub.\n", hPhone, lpdwPhoneStates, lpdwButtonModes, lpdwButtonStates);
193  return 0;
194 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ phoneGetVolume()

DWORD WINAPI phoneGetVolume ( HPHONE  hPhone,
DWORD  dwHookSwitchDevs,
LPDWORD  lpdwVolume 
)

Definition at line 199 of file phone.c.

201 {
202  FIXME("(%p, %08x, %p): stub.\n", hPhone, dwHookSwitchDevs, lpdwVolume);
203  /* call TSPI function here ! */
204  return 0;
205 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ phoneInitialize()

DWORD WINAPI phoneInitialize ( LPHPHONEAPP  lphPhoneApp,
HINSTANCE  hInstance,
PHONECALLBACK  lpfnCallback,
LPCSTR  lpszAppName,
LPDWORD  lpdwNumDevs 
)

Definition at line 210 of file phone.c.

211 {
212  FIXME("(%p, %p, %p, %s, %p): stub.\n", lphPhoneApp, hInstance, lpfnCallback, lpszAppName, lpdwNumDevs);
213  return 0;
214 }
HINSTANCE hInstance
Definition: charmap.c:20
#define FIXME(fmt,...)
Definition: debug.h:111

◆ phoneInitializeExA()

DWORD WINAPI phoneInitializeExA ( LPHPHONEAPP  lphPhoneApp,
HINSTANCE  hInstance,
PHONECALLBACK  lpfnCallback,
LPCSTR  lpszAppName,
LPDWORD  lpdwNumDevs,
LPDWORD  lpdwAPIVersion,
LPPHONEINITIALIZEEXPARAMS  lpPhoneInitializeExParams 
)

Definition at line 219 of file phone.c.

220 {
221  FIXME("(%p, %p, %p, %s, %p, %p, %p): stub.\n", lphPhoneApp, hInstance, lpfnCallback, lpszAppName, lpdwNumDevs, lpdwAPIVersion, lpPhoneInitializeExParams);
222  *lpdwNumDevs = 0;
223  return 0;
224 }
HINSTANCE hInstance
Definition: charmap.c:20
#define FIXME(fmt,...)
Definition: debug.h:111

◆ phoneInitializeExW()

DWORD WINAPI phoneInitializeExW ( LPHPHONEAPP  lphPhoneApp,
HINSTANCE  hInstance,
PHONECALLBACK  lpfnCallback,
LPCWSTR  lpszAppName,
LPDWORD  lpdwNumDevs,
LPDWORD  lpdwAPIVersion,
LPPHONEINITIALIZEEXPARAMS  lpPhoneInitializeExParams 
)

Definition at line 229 of file phone.c.

230 {
231  FIXME("(%p, %p, %p, %s, %p, %p, %p): stub.\n", lphPhoneApp, hInstance, lpfnCallback, debugstr_w(lpszAppName), lpdwNumDevs, lpdwAPIVersion, lpPhoneInitializeExParams);
232  *lpdwNumDevs = 0;
233  return 0;
234 }
HINSTANCE hInstance
Definition: charmap.c:20
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:111

◆ phoneNegotiateAPIVersion()

DWORD WINAPI phoneNegotiateAPIVersion ( HPHONEAPP  hPhoneApp,
DWORD  dwDeviceID,
DWORD  dwAPILowVersion,
DWORD  dwAPIHighVersion,
LPDWORD  lpdwAPIVersion,
LPPHONEEXTENSIONID  lpExtensionID 
)

Definition at line 239 of file phone.c.

240 {
241  FIXME("(): stub.\n");
242  return 0;
243 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ phoneNegotiateExtVersion()

DWORD WINAPI phoneNegotiateExtVersion ( HPHONEAPP  hPhoneApp,
DWORD  dwDeviceID,
DWORD  dwAPIVersion,
DWORD  dwExtLowVersion,
DWORD  dwExtHighVersion,
LPDWORD  lpdwExtVersion 
)

Definition at line 248 of file phone.c.

251 {
252  FIXME("(): stub.\n");
253  /* call TSPI function here ! */
254  return 0;
255 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ phoneOpen()

DWORD WINAPI phoneOpen ( HPHONEAPP  hPhoneApp,
DWORD  dwDeviceID,
LPHPHONE  lphPhone,
DWORD  dwAPIVersion,
DWORD  dwExtVersion,
DWORD  dwCallbackInstance,
DWORD  dwPrivileges 
)

Definition at line 260 of file phone.c.

261 {
262  FIXME("(): stub.\n");
263  /* call TSPI function here ! */
264  return 0;
265 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ phoneSetButtonInfoA()

DWORD WINAPI phoneSetButtonInfoA ( HPHONE  hPhone,
DWORD  dwButtonLampID,
LPPHONEBUTTONINFO  lpButtonInfo 
)

Definition at line 270 of file phone.c.

271 {
272  FIXME("(%p, %08x, %p): stub.\n", hPhone, dwButtonLampID, lpButtonInfo);
273  return 0;
274 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ phoneSetData()

DWORD WINAPI phoneSetData ( HPHONE  hPhone,
DWORD  dwDataID,
LPVOID  lpData,
DWORD  dwSize 
)

Definition at line 279 of file phone.c.

280 {
281  FIXME("(%p, %08x, %p, %d): stub.\n", hPhone, dwDataID, lpData, dwSize);
282  return 1;
283 }
#define FIXME(fmt,...)
Definition: debug.h:111
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
Definition: env.c:56

◆ phoneSetDisplay()

DWORD WINAPI phoneSetDisplay ( HPHONE  hPhone,
DWORD  dwRow,
DWORD  dwColumn,
LPCSTR  lpszDisplay,
DWORD  dwSize 
)

Definition at line 288 of file phone.c.

289 {
290  FIXME("(%p, '%s' at %d/%d, len %d): stub.\n", hPhone, lpszDisplay, dwRow, dwColumn, dwSize);
291  return 1;
292 }
#define FIXME(fmt,...)
Definition: debug.h:111
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
Definition: env.c:56

◆ phoneSetGain()

DWORD WINAPI phoneSetGain ( HPHONE  hPhone,
DWORD  dwHookSwitchDev,
DWORD  dwGain 
)

Definition at line 297 of file phone.c.

298 {
299  FIXME("(%p, %08x, %d): stub.\n", hPhone, dwHookSwitchDev, dwGain);
300  /* call TSPI function here ! */
301  return 1;
302 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ phoneSetHookSwitch()

DWORD WINAPI phoneSetHookSwitch ( HPHONE  hPhone,
DWORD  dwHookSwitchDevs,
DWORD  dwHookSwitchMode 
)

Definition at line 307 of file phone.c.

308 {
309  FIXME("(%p, %08x, %08x): stub.\n", hPhone, dwHookSwitchDevs, dwHookSwitchMode);
310  /* call TSPI function here ! */
311  return 1;
312 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ phoneSetLamp()

DWORD WINAPI phoneSetLamp ( HPHONE  hPhone,
DWORD  dwButtonLampID,
DWORD  lpdwLampMode 
)

Definition at line 317 of file phone.c.

318 {
319  FIXME("(%p, %08x, %08x): stub.\n", hPhone, dwButtonLampID, lpdwLampMode);
320  return 1;
321 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ phoneSetRing()

DWORD WINAPI phoneSetRing ( HPHONE  hPhone,
DWORD  dwRingMode,
DWORD  dwVolume 
)

Definition at line 326 of file phone.c.

327 {
328  FIXME("(%p, %08x, %08x): stub.\n", hPhone, dwRingMode, dwVolume);
329  return 1;
330 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ phoneSetStatusMessages()

DWORD WINAPI phoneSetStatusMessages ( HPHONE  hPhone,
DWORD  dwPhoneStates,
DWORD  dwButtonModes,
DWORD  dwButtonStates 
)

Definition at line 335 of file phone.c.

336 {
337  FIXME("(%p, %08x, %08x, %08x): stub.\n", hPhone, dwPhoneStates, dwButtonModes, dwButtonStates);
338  /* call TSPI function here ! */
339  return 0; /* FIXME ? */
340 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ phoneSetVolume()

DWORD WINAPI phoneSetVolume ( HPHONE  hPhone,
DWORD  dwHookSwitchDev,
DWORD  dwVolume 
)

Definition at line 345 of file phone.c.

346 {
347  FIXME("(%p, %08x, %08x): stub.\n", hPhone, dwHookSwitchDev, dwVolume);
348  /* call TSPI function here ! */
349  return 1;
350 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ phoneShutdown()

DWORD WINAPI phoneShutdown ( HPHONEAPP  hPhoneApp)

Definition at line 355 of file phone.c.

356 {
357  FIXME("(%p): stub.\n", hPhoneApp);
358  return 0;
359 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( tapi  )