📄 phone.hpp
字号:
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this sample source code is subject to the terms of the Microsoft
// license agreement under which you licensed this sample source code. If
// you did not accept the terms of the license agreement, you are not
// authorized to use this sample source code. For the terms of the license,
// please see the license agreement between you and Microsoft or, if applicable,
// see the LICENSE.RTF on your install media or the root of your tools installation.
// THE SAMPLE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES.
//
#pragma once
#ifndef __PHONE_HPP__
#define __PHONE_HPP__
typedef UINT VPARAM; // verb parameter
typedef enum tagPH_VERB
{
PH_VERB_TALK, // no VPARAM needed, uses the string in the accumulator.
PH_VERB_END, // VPARAM (optional) specifies which call group to end. Valid groups are a subset of PH_GROUPSTATE (PH_GS_CALLING, PH_GS_TALKING, PH_GS_HOLD). If no VPARAM (i.e NULL), the phone app chooses which call group to end
PH_VERB_HOLD, // no VPARAM needed, holds active call.
PH_VERB_UNHOLD, // no VPARAM needed, unholds active call.
PH_VERB_REJECT_INCOMING, // VPARAM is a boolean indicating if the call should be hidden from the UI (TRUE) or if it should be shown normally as an ended call (FALSE).
PH_VERB_ACCEPT_INCOMING, // no VPARAM needed, answers the incoming call.
PH_VERB_TRANSFER, // VPARAM is a pointer to target URI string
PH_VERB_DIALVMAIL, // no VPARAM needed. dials the voice mail number.
PH_VERB_DIALSPEEDDIAL, // the VPARAM should be the integer shortcut associated with the speed dial entry.
} PH_VERB;
#define MAKE_PHONE_CALL 100
#ifdef ENABLE_VOIP_TEST_HOOKS
//below are for testing purpose only
typedef struct tagDIAL_STRING_INFO
{
WCHAR DialString[MAX_PATH];
int DialStringLength;
int FormatType;
}DIAL_STRING_INFO;
#define GET_FORMATTED_NUMBER 0
#define GET_IS_NUMBER_AUTODIALABLE 5
#define DIAL_FORMAT 0
#define DISPLAY_FORMAT 1
#define TRANSFER_FORMAT 2
#define TEST_DIALENGINE_ROOT HKEY_LOCAL_MACHINE
#define TEST_DIALENGINE_PATH L"System\\State\\VoIP"
#define TEST_DIALENGINE_VALUE L"Formatted Number"
#endif
#endif /* __VOIPCALL_HPP__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -