📄 callctrl.h
字号:
/*++
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
Copyright (c) Microsoft Corporation. All rights reserved.
Module Name:
callctrl.h
Abstract:
Notes:
--*/
#pragma once
#define CALLCTRL_CMDBUF_LENGTH (MAX_PATH + MAXLENGTH_ADDRESS + MAXLENGTH_SUBADDR)
#define CALLCTRL_ALLOC_NUMBER 16
//
// Structure used for keeping track of address and calltype of a dialed call.
// Used only when using external calltype determination.
// This global spans the command and notification threads, and must be
// protected using CRITICAL_SECTION g_csDialedCallData.
//
struct DIALEDCALLDATA
{
BOOL fValid;
DWORD dwCalltype;
WCHAR wszAddress [MAXLENGTH_ADDRESS];
};
//
// Structure used for keeping track of the ID and calltype of a ringing call,
// along with flags controlling the sending of ring notifications.
// Used only when using external calltype determination.
// This global spans the command and notification threads, and must be
// protected using CRITICAL_SECTION g_csRingingCallData.
//
struct RINGINGCALLDATA
{
BOOL fCalltypeValid;
DWORD dwCalltype;
BOOL fCallIdValid;
DWORD dwCallId;
BOOL fDelayRingNotification;
BOOL fForceRingNotification;
};
//
// Structure used for keeping track of address and calltype of a waiting call
// Used only when using external calltype determination.
// This global is currently only used in the command thread. If access is
// changed to span multiple threads, it must be protected using a
// CRITICAL_SECTION.
//
struct WAITINGCALLDATA
{
BOOL fValid;
DWORD dwCalltype;
WCHAR wszAddress [MAXLENGTH_ADDRESS];
};
HRESULT RILDrv_Dial(DWORD dwParam, LPCSTR szAddress, DWORD dwType, DWORD dwOptions);
HRESULT RILDrv_Answer(DWORD dwParam);
HRESULT RILDrv_Hangup(DWORD dwParam);
HRESULT RILDrv_SendDTMF(DWORD dwParam, LPCSTR lpszChars, DWORD dwDuration);
HRESULT RILDrv_GetCallList(DWORD dwParam);
HRESULT RILDrv_ManageCalls(DWORD dwParam, DWORD dwCommand, DWORD dwID);
HRESULT RILDrv_TransferCall(DWORD dwParam, const RILADDRESS* lpAddress, const RILSUBADDRESS* lpSubAddress);
HRESULT RILDrv_GetLineStatus(DWORD dwParam);
HRESULT RILDrv_GetCurrentAddressId(DWORD dwParam);
HRESULT RILDrv_SetCurrentAddressId(DWORD dwParam, DWORD dwAddressId);
HRESULT RILDrv_SendFlash(DWORD dwParam, RILADDRESS raRilAddress);
#ifdef PHILIP_DRIVER
BOOL RILDrv_OpenMyWav(void);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -