⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 newresource.hpp

📁 一个WinCE6。0下的IP 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 __RESOURCE_H__ 
#define __RESOURCE_H__

//menus
#define IDMB_DEFAULT_BUTTONS            100
#define IDMB_DIALING_BUTTONS            101
#define IDMB_DIALING_EMPTY_BUTTONS      102
#define IDMB_CALLSTATUS_BUTTONS         103
#define IDMB_INCOMING_BUTTONS           104
#define IDMB_TRANSFERRING_BUTTONS       105
#define IDMB_TRANSFERRING_EMPTY_BUTTONS 106
#define IDMB_HELP_BUTTONS               107

//menu items
#define IDM_INPUT                       200
#define IDM_BACKSPACE                   201
#define IDM_DIAL                        202
#define IDM_HOLD                        203
#define IDM_UNHOLD                      204
#define IDM_SAVETOSPEEDDIAL             205
#define IDM_DIRECTTOVOICEMAIL           206
#define IDM_ANSWER                      207
#define IDM_CANCEL                      208
#define IDM_HANGUP                      209
#define IDM_TRANSFER                    210
#define IDM_HELP_OK                     211

//icons
#define IDB_ICON_INCOMINGCALL           300
#define IDB_ICON_ERROR                  301
#define IDB_CALL_GLYPHS                 302
#define IDB_HELP_ICON                   303

//Layout Data
#define IDR_METRICS_DATA                400 
#define DEFINE_MARGIN(Left, Top, Right, Bottom) \
    (Left), (Top), (Right), (Bottom)
#define DEFINE_SIZE(Width, Height) \
    (Width), (Height)
#define DEFINE_ADJUSTMENT_MARGIN(AfterLabel, Right, Top, Bottom) \
    (AfterLabel), (Right), (Top), (Bottom)

//Colors Data
#define IDR_COLORS_DATA                 500 
#define DEFINE_RGB_COLOR(Red, Green, Blue) \
    (Red##L + Green##00L + Blue##0000L)


//HotKeys Data
#define IDR_HOTKEYS_DATA                600 

//common strings
#define IDS_INCOMING_TITLE                  1000
#define IDS_INCOMING_TEXT                   1001
#define IDS_DEFAULT_HEADER                  1002
#define IDS_DEFAULT_TITLE                   1003
#define IDS_LABEL_DIAL                      1004
#define IDS_LABEL_TRANSFER                  1005
#define IDS_TIME_FMT_DURATION               1006

//status header
#define IDS_STATUS_CALL_TRYING              2000
#define IDS_STATUS_CALL_RINGING             2001
#define IDS_STATUS_CALL_CONNECTED           2002
#define IDS_STATUS_CALL_HOLDING             2003
#define IDS_STATUS_CALL_FORWARDING          2004
#define IDS_STATUS_CALL_PROGRESS            2005
#define IDS_STATUS_CALL_CONTACTINGSERVER    2006
#define IDS_STATUS_HELP_DEFAULT             2007 

//commmon errors
#define IDS_ERROR_UNKNOWN                   3000
#define IDS_ERROR_INTERNAL                  3001
#define IDS_ERROR_WIN32                     IDS_ERROR_INTERNAL
#define IDS_ERROR_OUTOFMEMORY               3002
#define IDS_ERROR_VOIPBUSY                  3003
#define IDS_ERROR_NODB                      3015
#define IDS_ERROR_INVALIDNUMBER             3016

//context sensitive help
#define IDS_SCREENHELP_CALLSINPROGRESS      4000
#define IDS_SCREENHELP_TITLE                4001
#define IDS_SCREENHELP_DEFAULT              4002

//Error strings
#define IDS_ERROR_RTCAPI_E_BASE             5000
#define MAX_RTCAPIERR                       133

//NOTE!!! All RTCAPI errors must have a value IDS_ERROR_RTCAPI_E_BASE + their HRESULT_CODE()
//rtc error string
#define IDS_RTCERR_SIP_STREAM_PRESENT               5001
#define IDS_RTCERR_SIP_STREAM_NOT_PRESENT           5002
#define IDS_RTCERR_SIP_NO_STREAM                    5003
#define IDS_RTCERR_SIP_PARSE_FAILED                 5004
#define IDS_RTCERR_SIP_HEADER_NOT_PRESENT           5005
#define IDS_RTCERR_SDP_NOT_PRESENT                  5006
#define IDS_RTCERR_SDP_PARSE_FAILED                 5007
#define IDS_RTCERR_SDP_UPDATE_FAILED                5008
#define IDS_RTCERR_SDP_MULTICAST                    5009
#define IDS_RTCERR_SDP_CONNECTION_ADDR              5010
#define IDS_RTCERR_SDP_NO_MEDIA                     5011
#define IDS_RTCERR_SIP_TIMEOUT                      5012
#define IDS_RTCERR_SDP_FAILED_TO_BUILD              5013
#define IDS_RTCERR_SIP_INVITE_TRANSACTION_PENDING   5014
#define IDS_RTCERR_SIP_AUTH_HEADER_SENT             5015
#define IDS_RTCERR_SIP_AUTH_TYPE_NOT_SUPPORTED      5016
#define IDS_RTCERR_SIP_AUTH_FAILED                  5017
#define IDS_RTCERR_INVALID_SIP_URL                  5018
#define IDS_RTCERR_DESTINATION_ADDRESS_LOCAL        5019
#define IDS_RTCERR_INVALID_ADDRESS_LOCAL            5020
#define IDS_RTCERR_DESTINATION_ADDRESS_MULTICAST    5021
#define IDS_RTCERR_INVALID_PROXY_ADDRESS            5022
#define IDS_RTCERR_SIP_TRANSPORT_NOT_SUPPORTED      5023
#define IDS_RTCERR_SIP_NEED_MORE_DATA               5024
#define IDS_RTCERR_SIP_CALL_DISCONNECTED            5025
#define IDS_RTCERR_SIP_REQUEST_DESTINATION_ADDR_NOT_PRESENT 5026
#define IDS_RTCERR_SIP_UDP_SIZE_EXCEEDED            5027
#define IDS_RTCERR_SIP_SSL_TUNNEL_FAILED            5028
#define IDS_RTCERR_SIP_SSL_NEGOTIATION_TIMEOUT      5029
#define IDS_RTCERR_SIP_STACK_SHUTDOWN               5030
#define IDS_RTCERR_MEDIA_CONTROLLER_STATE           5031
#define IDS_RTCERR_MEDIA_NEED_TERMINAL              5032
#define IDS_RTCERR_MEDIA_AUDIO_DEVICE_NOT_AVAILABLE 5033
#define IDS_RTCERR_MEDIA_VIDEO_DEVICE_NOT_AVAILABLE 5034
#define IDS_RTCERR_START_STREAM                     5035
#define IDS_RTCERR_MEDIA_AEC                        5036
#define IDS_RTCERR_CLIENT_NOT_INITIALIZED           5037
#define IDS_RTCERR_CLIENT_ALREADY_INITIALIZED       5038
#define IDS_RTCERR_CLIENT_ALREADY_SHUT_DOWN         5039
#define IDS_RTCERR_PRESENCE_NOT_ENABLED             5040
#define IDS_RTCERR_INVALID_SESSION_TYPE             5041
#define IDS_RTCERR_INVALID_SESSION_STATE            5042
#define IDS_RTCERR_NO_PROFILE                       5043
#define IDS_RTCERR_LOCAL_PHONE_NEEDED               5044
#define IDS_RTCERR_NO_DEVICE                        5045
#define IDS_RTCERR_INVALID_PROFILE                  5046
#define IDS_RTCERR_PROFILE_NO_PROVISION             5047
#define IDS_RTCERR_PROFILE_NO_KEY                   5048
#define IDS_RTCERR_PROFILE_NO_NAME                  5049
#define IDS_RTCERR_PROFILE_NO_USER                  5050
#define IDS_RTCERR_PROFILE_NO_USER_URI              5051
#define IDS_RTCERR_PROFILE_NO_SERVER                5052
#define IDS_RTCERR_PROFILE_NO_SERVER_ADDRESS        5053
#define IDS_RTCERR_PROFILE_NO_SERVER_PROTOCOL       5054
#define IDS_RTCERR_PROFILE_INVALID_SERVER_PROTOCOL  5055
#define IDS_RTCERR_PROFILE_INVALID_SERVER_AUTHMETHOD 5056
#define IDS_RTCERR_PROFILE_INVALID_SERVER_ROLE      5057
#define IDS_RTCERR_PROFILE_MULTIPLE_REGISTRARS      5058
#define IDS_RTCERR_PROFILE_INVALID_SESSION          5059
#define IDS_RTCERR_PROFILE_INVALID_SESSION_PARTY    5060
#define IDS_RTCERR_PROFILE_INVALID_SESSION_TYPE     5061
#define IDS_RTCERR_OPERATION_WITH_TOO_MANY_PARTICIPANTS 5062
#define IDS_RTCERR_BASIC_AUTH_SET_TLS               5063
#define IDS_RTCERR_SIP_HIGH_SECURITY_SET_TLS        5064
//skip RTC_S_ROAMING_NOT_SUPPORTED
#define IDS_RTCERR_PROFILE_SERVER_UNAUTHORIZED      5066
#define IDS_RTCERR_DUPLICATE_REALM                  5067
#define IDS_RTCERR_POLICY_NOT_ALLOW                 5068
#define IDS_RTCERR_PORT_MAPPING_UNAVAILABLE         5069
#define IDS_RTCERR_PORT_MAPPING_FAILED              5070
#define IDS_RTCERR_SECURITY_LEVEL_NOT_COMPATIBLE    5071
#define IDS_RTCERR_SECURITY_LEVEL_NOT_DEFINED       5072
#define IDS_RTCERR_SECURITY_LEVEL_NOT_SUPPORTED_BY_PARTICIPANT 5073
#define IDS_RTCERR_DUPLICATE_BUDDY                  5074
#define IDS_RTCERR_DUPLICATE_WATCHER                5075
#define IDS_RTCERR_MALFORMED_XML                    5076
#define IDS_RTCERR_ROAMING_OPERATION_INTERRUPTED    5077
#define IDS_RTCERR_ROAMING_FAILED                   5078
#define IDS_RTCERR_INVALID_BUDDY_LIST               5079
#define IDS_RTCERR_INVALID_ACL_LIST                 5080
#define IDS_RTCERR_NO_GROUP                         5081
#define IDS_RTCERR_DUPLICATE_GROUP                  5082
#define IDS_RTCERR_TOO_MANY_GROUPS                  5083
#define IDS_RTCERR_NO_BUDDY                         5084
#define IDS_RTCERR_NO_WATCHER                       5085
#define IDS_RTCERR_NO_REALM                         5086
#define IDS_RTCERR_NO_TRANSPORT                     5087
#define IDS_RTCERR_NOT_EXIST                        5088
#define IDS_RTCERR_INVALID_PREFERENCE_LIST          5089
#define IDS_RTCERR_MAX_PENDING_OPERATIONS           5090
#define IDS_RTCERR_TOO_MANY_RETRIES                 5091
#define IDS_RTCERR_INVALID_PORTRANGE                5092
#define IDS_RTCERR_SIP_CALL_CONNECTION_NOT_ESTABLISHED 5093
#define IDS_RTCERR_SIP_ADDITIONAL_PARTY_IN_TWO_PARTY_SESSION 5094
#define IDS_RTCERR_SIP_PARTY_ALREADY_IN_SESSION     5095
#define IDS_RTCERR_SIP_OTHER_PARTY_JOIN_IN_PROGRESS 5096
#define IDS_RTCERR_INVALID_OBJECT_STATE             5097
#define IDS_RTCERR_PRESENCE_ENABLED                 5098
#define IDS_RTCERR_ROAMING_ENABLED                  5099
#define IDS_RTCERR_SIP_TLS_INCOMPATIBLE_ENCRYPTION  5100
#define IDS_RTCERR_SIP_INVALID_CERTIFICATE          5101
#define IDS_RTCERR_SIP_DNS_FAIL                     5102
#define IDS_RTCERR_SIP_TCP_FAIL                     5103
#define IDS_RTCERR_TOO_SMALL_EXPIRES_VALUE          5104
#define IDS_RTCERR_SIP_TLS_FAIL                     5105
#define IDS_RTCERR_NOT_PRESENCE_PROFILE             5106
#define IDS_RTCERR_SIP_INVITEE_PARTY_TIMEOUT        5107
#define IDS_RTCERR_SIP_AUTH_TIME_SKEW               5108
#define IDS_RTCERR_INVALID_REGISTRATION_STATE       5109
#define IDS_RTCERR_MEDIA_DISABLED                   5110
#define IDS_RTCERR_MEDIA_ENABLED                    5111
#define IDS_RTCERR_REFER_NOT_ACCEPTED               5112
#define IDS_RTCERR_REFER_NOT_ALLOWED                5113
#define IDS_RTCERR_REFER_NOT_EXIST                  5114
#define IDS_RTCERR_SIP_HOLD_OPERATION_PENDING       5115
#define IDS_RTCERR_SIP_UNHOLD_OPERATION_PENDING     5116
#define IDS_RTCERR_MEDIA_SESSION_NOT_EXIST          5117
#define IDS_RTCERR_MEDIA_SESSION_IN_HOLD            5118
#define IDS_RTCERR_ANOTHER_MEDIA_SESSION_ACTIVE     5119
#define IDS_RTCERR_MAX_REDIRECTS                    5120   
#define IDS_RTCERR_REDIRECT_PROCESSING_FAILED       5121
#define IDS_RTCERR_LISTENING_SOCKET_NOT_EXIST       5122
#define IDS_RTCERR_INVALID_LISTEN_SOCKET            5123
#define IDS_RTCERR_PORT_MANAGER_ALREADY_SET         5124
#define IDS_RTCERR_SECURITY_LEVEL_ALREADY_SET       5125
#define IDS_RTCERR_UDP_NOT_SUPPORTED                5126
#define IDS_RTCERR_SIP_REFER_OPERATION_PENDING      5127
#define IDS_RTCERR_PLATFORM_NOT_SUPPORTED           5128
#define IDS_RTCERR_SIP_PEER_PARTICIPANT_IN_MULTIPARTY_SESSION 5129
#define IDS_RTCERR_NOT_ALLOWED                      5130
#define IDS_RTCERR_REGISTRATION_DEACTIVATED         5131
#define IDS_RTCERR_REGISTRATION_REJECTED            5132
#define IDS_RTCERR_REGISTRATION_UNREGISTERED        5133

//SIP and PINT Errors
#define IDS_RTCERR_STATUS_REDIRECT_MULTIPLE_CHOICES 5140
#define IDS_RTCERR_STATUS_REDIRECT_MOVED_PERMANENTLY 5141
#define IDS_RTCERR_STATUS_REDIRECT_MOVED_TEMPORARILY 5142
#define IDS_RTCERR_STATUS_REDIRECT_SEE_OTHER        5143
#define IDS_RTCERR_STATUS_REDIRECT_USE_PROXY        5144
#define IDS_RTCERR_STATUS_REDIRECT_ALTERNATIVE_SERVICE 5145
#define IDS_RTCERR_STATUS_CLIENT_BAD_REQUEST        5146
#define IDS_RTCERR_STATUS_CLIENT_UNAUTHORIZED       5147
#define IDS_RTCERR_STATUS_CLIENT_PAYMENT_REQUIRED   5148
#define IDS_RTCERR_STATUS_CLIENT_FORBIDDEN          5149
#define IDS_RTCERR_STATUS_CLIENT_NOT_FOUND          5150
#define IDS_RTCERR_STATUS_CLIENT_METHOD_NOT_ALLOWED 5151
#define IDS_RTCERR_STATUS_CLIENT_NOT_ACCEPTABLE     5152
#define IDS_RTCERR_STATUS_CLIENT_PROXY_AUTHENTICATION_REQUIRED 5153
#define IDS_RTCERR_STATUS_CLIENT_REQUEST_TIMEOUT    5154
#define IDS_RTCERR_STATUS_CLIENT_CONFLICT           5155
#define IDS_RTCERR_STATUS_CLIENT_GONE               5156
#define IDS_RTCERR_STATUS_CLIENT_LENGTH_REQUIRED    5157
#define IDS_RTCERR_STATUS_CLIENT_REQUEST_ENTITY_TOO_LARGE   5158
#define IDS_RTCERR_STATUS_CLIENT_REQUEST_URI_TOO_LARGE      5159
#define IDS_RTCERR_STATUS_CLIENT_UNSUPPORTED_MEDIA_TYPE     5160
#define IDS_RTCERR_STATUS_CLIENT_BAD_EXTENSION      5161
#define IDS_RTCERR_STATUS_CLIENT_TEMPORARILY_NOT_AVAILABLE 5162
#define IDS_RTCERR_STATUS_CLIENT_TRANSACTION_DOES_NOT_EXIST 5163
#define IDS_RTCERR_STATUS_CLIENT_LOOP_DETECTED      5164
#define IDS_RTCERR_STATUS_CLIENT_TOO_MANY_HOPS      5165
#define IDS_RTCERR_STATUS_CLIENT_ADDRESS_INCOMPLETE 5166
#define IDS_RTCERR_STATUS_CLIENT_AMBIGUOUS          5167
#define IDS_RTCERR_STATUS_CLIENT_BUSY_HERE          5168
#define IDS_RTCERR_STATUS_REQUEST_TERMINATED        5169
#define IDS_RTCERR_STATUS_NOT_ACCEPTABLE_HERE       5170
#define IDS_RTCERR_STATUS_SERVER_INTERNAL_ERROR     5171
#define IDS_RTCERR_STATUS_SERVER_NOT_IMPLEMENTED    5172
#define IDS_RTCERR_STATUS_SERVER_BAD_GATEWAY        5173
#define IDS_RTCERR_STATUS_SERVER_SERVICE_UNAVAILABLE 5174
#define IDS_RTCERR_STATUS_SERVER_SERVER_TIMEOUT     5175
#define IDS_RTCERR_STATUS_SERVER_VERSION_NOT_SUPPORTED  5176
#define IDS_RTCERR_STATUS_GLOBAL_BUSY_EVERYWHERE    5177
#define IDS_RTCERR_STATUS_GLOBAL_DECLINE            5178
#define IDS_RTCERR_STATUS_GLOBAL_DOES_NOT_EXIST_ANYWHERE 5179
#define IDS_RTCERR_STATUS_GLOBAL_NOT_ACCEPTABLE     5180
#define IDS_RTCERR_PINT_STATUS_REJECTED_BUSY        5181
#define IDS_RTCERR_PINT_STATUS_REJECTED_NO_ANSWER   5182
#define IDS_RTCERR_PINT_STATUS_REJECTED_ALL_BUSY    5183
#define IDS_RTCERR_PINT_STATUS_REJECTED_PL_FAILED   5184
#define IDS_RTCERR_PINT_STATUS_REJECTED_SW_FAILED   5185
#define IDS_RTCERR_PINT_STATUS_REJECTED_CANCELLED   5186
#define IDS_RTCERR_PINT_STATUS_REJECTED_BADNUMBER   5187


//Caller ID
#define IDS_CALLERID_UNKNOWNINTERNAL     6000
#define IDS_CALLERID_INTERNAL            6001
#define IDS_CALLERID_UNKNOWNEXTERNAL     6002
#define IDS_CALLERID_EXTERNAL            6003
#define IDS_CALLERID_BLOCKED             6004
#define IDS_CALLERID_EXTENSIONFMT        6005
#define IDS_CALLERID_VOICEMAIL           6006      

#endif // !defined __RESOURCE_H__


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -