hxresult.h
上传用户:dangjiwu
上传日期:2013-07-19
资源大小:42019k
文件大小:42k
源码类别:

Symbian

开发平台:

Visual C++

  1. /* ***** BEGIN LICENSE BLOCK *****
  2.  * Source last modified: $Id: hxresult.h,v 1.16.2.4 2004/07/09 01:45:13 hubbe Exp $
  3.  * 
  4.  * Portions Copyright (c) 1995-2004 RealNetworks, Inc. All Rights Reserved.
  5.  * 
  6.  * The contents of this file, and the files included with this file,
  7.  * are subject to the current version of the RealNetworks Public
  8.  * Source License (the "RPSL") available at
  9.  * http://www.helixcommunity.org/content/rpsl unless you have licensed
  10.  * the file under the current version of the RealNetworks Community
  11.  * Source License (the "RCSL") available at
  12.  * http://www.helixcommunity.org/content/rcsl, in which case the RCSL
  13.  * will apply. You may also obtain the license terms directly from
  14.  * RealNetworks.  You may not use this file except in compliance with
  15.  * the RPSL or, if you have a valid RCSL with RealNetworks applicable
  16.  * to this file, the RCSL.  Please see the applicable RPSL or RCSL for
  17.  * the rights, obligations and limitations governing use of the
  18.  * contents of the file.
  19.  * 
  20.  * Alternatively, the contents of this file may be used under the
  21.  * terms of the GNU General Public License Version 2 or later (the
  22.  * "GPL") in which case the provisions of the GPL are applicable
  23.  * instead of those above. If you wish to allow use of your version of
  24.  * this file only under the terms of the GPL, and not to allow others
  25.  * to use your version of this file under the terms of either the RPSL
  26.  * or RCSL, indicate your decision by deleting the provisions above
  27.  * and replace them with the notice and other provisions required by
  28.  * the GPL. If you do not delete the provisions above, a recipient may
  29.  * use your version of this file under the terms of any one of the
  30.  * RPSL, the RCSL or the GPL.
  31.  * 
  32.  * This file is part of the Helix DNA Technology. RealNetworks is the
  33.  * developer of the Original Code and owns the copyrights in the
  34.  * portions it created.
  35.  * 
  36.  * This file, and the files included with this file, is distributed
  37.  * and made available on an 'AS IS' basis, WITHOUT WARRANTY OF ANY
  38.  * KIND, EITHER EXPRESS OR IMPLIED, AND REALNETWORKS HEREBY DISCLAIMS
  39.  * ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES
  40.  * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET
  41.  * ENJOYMENT OR NON-INFRINGEMENT.
  42.  * 
  43.  * Technology Compatibility Kit Test Suite(s) Location:
  44.  *    http://www.helixcommunity.org/content/tck
  45.  * 
  46.  * Contributor(s):
  47.  * 
  48.  * ***** END LICENSE BLOCK ***** */
  49. #ifndef _HXRESULT_H_
  50. #define _HXRESULT_H_
  51. /* Some files include this before pntypes.h. */
  52. #include "hxtypes.h"
  53. typedef LONG32  HX_RESULT;
  54. #ifndef _WIN32
  55.     typedef HX_RESULT HRESULT;
  56. #   undef NOERROR
  57. #   define NOERROR 0
  58. #   define FACILITY_ITF 4
  59. #   define MAKE_HRESULT(sev,fac,code)                                           
  60.         ((HRESULT) (((unsigned long)(sev)<<31) | ((unsigned long)(fac)<<16) |   
  61.         ((unsigned long)(code))) )
  62. #   define SUCCEEDED(Status) (((unsigned long)(Status)>>31) == 0)
  63. #   define FAILED(Status) (((unsigned long)(Status)>>31) != 0)
  64. #else
  65. #   ifndef _HRESULT_DEFINED
  66.         typedef LONG32 HRESULT;
  67. #   endif       /* _HRESULT_DEFINED */
  68. #   include <winerror.h>
  69. #endif /* _WIN32 */
  70. #define MAKE_HX_RESULT(sev,fac,code) MAKE_HRESULT(sev, FACILITY_ITF,        
  71.     ((fac << 6) | (code)))
  72. #define SS_GLO 0  /* General errors                             */
  73. #define SS_NET 1  /* Networking errors                          */
  74. #define SS_FIL 2  /* File errors                                */
  75. #define SS_PRT 3  /* Protocol Error                             */
  76. #define SS_AUD 4  /* Audio error                                */
  77. #define SS_INT 5  /* General internal errors                    */
  78. #define SS_USR 6  /* The user is broken.                        */
  79. #define SS_MSC 7  /* Miscellaneous                              */
  80. #define SS_DEC 8  /* Decoder errors                             */
  81. #define SS_ENC 9  /* Encoder errors                             */
  82. #define SS_REG 10 /* Registry (not Windows registry ;) errors   */
  83. #define SS_PPV 11 /* Pay Per View errors                        */
  84. #define SS_RSC 12 /* Errors for HXXRES */
  85. #define SS_UPG 13 /* Auto-upgrade & Certificate Errors          */
  86. #define SS_PLY 14 /* RealPlayer/Plus specific errors (USE ONLY IN /rpmisc/pub/rpresult.h) */
  87. #define SS_RMT 15 /* RMTools Errors                             */
  88. #define SS_CFG 16 /* AutoConfig Errors                          */
  89. #define SS_RPX 17 /* RealPix-related Errors */
  90. #define SS_XML 18 /* XML-related Errors                         */
  91. // $Private:
  92. #define SS_TKO 19 /* Taiko specific errors (USE ONLY IN /taiko/tresult.h) */
  93. #define SS_SEC 20 /* Security (key handling, encrypt,decrypt, CSP,...) errors */
  94. // $EndPrivate.
  95. #define SS_RCA 21 /* RCA errors                                 */
  96. #define SS_ENC_AX 22 /* Encoder Active x error                  */
  97. #define SS_DPR 63 /* Deprecated errors                          */
  98. #define SS_SAM 100 /* ServerAlert errors                        */
  99. #define HXR_NOTIMPL                     MAKE_HRESULT(1,0,0x4001)                    // 80004001
  100. #define HXR_OUTOFMEMORY                 MAKE_HRESULT(1,7,0x000e)                    // 8007000e
  101. #define HXR_INVALID_PARAMETER           MAKE_HRESULT(1,7,0x0057)                    // 80070057
  102. #define HXR_NOINTERFACE                 MAKE_HRESULT(1,0,0x4002)                    // 80004002
  103. #define HXR_POINTER                     MAKE_HRESULT(1,0,0x4003)                    // 80004003
  104. #define HXR_HANDLE                      MAKE_HRESULT(1,7,0x0006)                    // 80070006
  105. #define HXR_ABORT                       MAKE_HRESULT(1,0,0x4004)                    // 80004004
  106. #define HXR_FAIL                        MAKE_HRESULT(1,0,0x4005)                    // 80004005
  107. #define HXR_ACCESSDENIED                MAKE_HRESULT(1,7,0x0005)                    // 80070005
  108. #define HXR_IGNORE                      MAKE_HRESULT(1,0,0x0006)                    // 80000006
  109. #define HXR_OK                          MAKE_HRESULT(0,0,0)                         // 00000000
  110. #define HXR_INVALID_OPERATION           MAKE_HX_RESULT(1,SS_GLO,4)                  // 80040004
  111. #define HXR_INVALID_VERSION             MAKE_HX_RESULT(1,SS_GLO,5)                  // 80040005
  112. #define HXR_INVALID_REVISION            MAKE_HX_RESULT(1,SS_GLO,6)                  // 80040006
  113. #define HXR_NOT_INITIALIZED             MAKE_HX_RESULT(1,SS_GLO,7)                  // 80040007
  114. #define HXR_DOC_MISSING                 MAKE_HX_RESULT(1,SS_GLO,8)                  // 80040008
  115. #define HXR_UNEXPECTED                  MAKE_HX_RESULT(1,SS_GLO,9)                  // 80040009
  116. #define HXR_INCOMPLETE                  MAKE_HX_RESULT(1,SS_GLO,12)                 // 8004000c
  117. #define HXR_BUFFERTOOSMALL              MAKE_HX_RESULT(1,SS_GLO,13)                 // 8004000d
  118. #define HXR_UNSUPPORTED_VIDEO           MAKE_HX_RESULT(1,SS_GLO,14)                 // 8004000e
  119. #define HXR_UNSUPPORTED_AUDIO           MAKE_HX_RESULT(1,SS_GLO,15)                 // 8004000f
  120. #define HXR_INVALID_BANDWIDTH           MAKE_HX_RESULT(1,SS_GLO,16)                 // 80040010
  121. /* HXR_NO_RENDERER and HXR_NO_FILEFORMAT old value is being deprecated
  122. #define HXR_NO_FILEFORMAT               MAKE_HX_RESULT(1,SS_GLO,10)
  123. #define HXR_NO_RENDERER                 MAKE_HX_RESULT(1,SS_GLO,11)*/
  124. #define HXR_NO_RENDERER                 MAKE_HX_RESULT(1,SS_GLO,17)                 // 80040011
  125. #define HXR_NO_FILEFORMAT               MAKE_HX_RESULT(1,SS_GLO,17)                 // 80040011
  126. #define HXR_MISSING_COMPONENTS          MAKE_HX_RESULT(1,SS_GLO,17)                 // 80040011
  127. #define HXR_ELEMENT_NOT_FOUND           MAKE_HX_RESULT(0,SS_GLO,18)                 // 00040012
  128. #define HXR_NOCLASS                     MAKE_HX_RESULT(0,SS_GLO,19)                 // 00040013
  129. #define HXR_CLASS_NOAGGREGATION         MAKE_HX_RESULT(0,SS_GLO,20)                 // 00040014
  130. #define HXR_NOT_LICENSED                MAKE_HX_RESULT(1,SS_GLO,21)                 // 80040015
  131. #define HXR_NO_FILESYSTEM               MAKE_HX_RESULT(1,SS_GLO,22)                 // 80040016
  132. #define HXR_REQUEST_UPGRADE             MAKE_HX_RESULT(1,SS_GLO,23)                 // 80040017
  133. #define HXR_CHECK_RIGHTS               MAKE_HX_RESULT(1,SS_GLO,24)                 // 80040018
  134. #define HXR_RESTORE_SERVER_DENIED      MAKE_HX_RESULT(1,SS_GLO,25)                 // 80040019
  135. #define HXR_DEBUGGER_DETECTED          MAKE_HX_RESULT(1,SS_GLO,26)                 // 8004001a
  136. #define HXR_RESTORE_SERVER_CONNECT     MAKE_HX_RESULT(1,SS_NET,28)                 // 8004005c
  137. #define HXR_RESTORE_SERVER_TIMEOUT     MAKE_HX_RESULT(1,SS_NET,29)                 // 8004005d
  138. #define HXR_REVOKE_SERVER_CONNECT      MAKE_HX_RESULT(1,SS_NET,30)                 // 8004005e
  139. #define HXR_REVOKE_SERVER_TIMEOUT      MAKE_HX_RESULT(1,SS_NET,31)                 // 8004005f
  140. #define HXR_VIEW_RIGHTS_NODRM          MAKE_HX_RESULT(1,SS_MSC,13)                 // 800401cd
  141. #define HXR_VSRC_NODRM                 MAKE_HX_RESULT(1,SS_MSC,19)                 // 800401d3
  142. // $Private:
  143. /* Status Code for backup/restore*/
  144. #define HXR_RESTORATION_COMPLETE        MAKE_HX_RESULT(1,SS_GLO,27)                 // 8004001b
  145. #define HXR_BACKUP_COMPLETE             MAKE_HX_RESULT(1,SS_GLO,28)                 // 8004001c
  146. #define HXR_TLC_NOT_CERTIFIED           MAKE_HX_RESULT(1,SS_GLO,29)                 // 8004001d
  147. #define HXR_CORRUPTED_BACKUP_FILE       MAKE_HX_RESULT(1,SS_GLO,30)                 // 8004001e
  148. // $EndPrivate.
  149. #define HXR_AWAITING_LICENSE            MAKE_HX_RESULT(1,SS_GLO,31)                 // 8004001f
  150. #define HXR_ALREADY_INITIALIZED         MAKE_HX_RESULT(1,SS_GLO,32)                 // 80040020
  151. #define HXR_NOT_SUPPORTED               MAKE_HX_RESULT(1,SS_GLO,33)                 // 80040021
  152. #define HXR_S_FALSE                     MAKE_HX_RESULT(0,SS_GLO,34)                 // 00040022
  153. #define PNR_WARNING                     MAKE_HX_RESULT(0,SS_GLO,35)                 // 00040023
  154. #define HXR_BUFFERING                   MAKE_HX_RESULT(0,SS_NET,0)                  // 00040040
  155. #define HXR_PAUSED                      MAKE_HX_RESULT(0,SS_NET,1)                  // 00040041
  156. #define HXR_NO_DATA                     MAKE_HX_RESULT(0,SS_NET,2)                  // 00040042
  157. #define HXR_STREAM_DONE                 MAKE_HX_RESULT(0,SS_NET,3)                  // 00040043
  158. #define HXR_NET_SOCKET_INVALID          MAKE_HX_RESULT(1,SS_NET,3)                  // 80040043
  159. #define HXR_NET_CONNECT                 MAKE_HX_RESULT(1,SS_NET,4)                  // 80040044
  160. #define HXR_BIND                        MAKE_HX_RESULT(1,SS_NET,5)                  // 80040045
  161. #define HXR_SOCKET_CREATE               MAKE_HX_RESULT(1,SS_NET,6)                  // 80040046
  162. #define HXR_INVALID_HOST                MAKE_HX_RESULT(1,SS_NET,7)                  // 80040047
  163. #define HXR_NET_READ                    MAKE_HX_RESULT(1,SS_NET,8)                  // 80040048
  164. #define HXR_NET_WRITE                   MAKE_HX_RESULT(1,SS_NET,9)                  // 80040049
  165. #define HXR_NET_UDP                     MAKE_HX_RESULT(1,SS_NET,10)                 // 8004004a
  166. #define HXR_RETRY                       MAKE_HX_RESULT(1,SS_NET,11) /* XXX */       // 8004004b
  167. #define HXR_SERVER_TIMEOUT              MAKE_HX_RESULT(1,SS_NET,12)                 // 8004004c
  168. #define HXR_SERVER_DISCONNECTED         MAKE_HX_RESULT(1,SS_NET,13)                 // 8004004d
  169. #define HXR_WOULD_BLOCK                 MAKE_HX_RESULT(1,SS_NET,14)                 // 8004004e
  170. #define HXR_GENERAL_NONET               MAKE_HX_RESULT(1,SS_NET,15)                 // 8004004f
  171. #define HXR_BLOCK_CANCELED              MAKE_HX_RESULT(1,SS_NET,16) /* XXX */       // 80040050
  172. #define HXR_MULTICAST_JOIN              MAKE_HX_RESULT(1,SS_NET,17)                 // 80040051
  173. #define HXR_GENERAL_MULTICAST           MAKE_HX_RESULT(1,SS_NET,18)                 // 80040052
  174. #define HXR_MULTICAST_UDP               MAKE_HX_RESULT(1,SS_NET,19)                 // 80040053
  175. #define HXR_AT_INTERRUPT                MAKE_HX_RESULT(1,SS_NET,20)                 // 80040054
  176. #define HXR_MSG_TOOLARGE                MAKE_HX_RESULT(1,SS_NET,21)                 // 80040055
  177. #define HXR_NET_TCP                     MAKE_HX_RESULT(1,SS_NET,22)                 // 80040056
  178. #define HXR_TRY_AUTOCONFIG              MAKE_HX_RESULT(1,SS_NET,23)                 // 80040057
  179. #define HXR_NOTENOUGH_BANDWIDTH         MAKE_HX_RESULT(1,SS_NET,24)                 // 80040058
  180. #define HXR_HTTP_CONNECT                MAKE_HX_RESULT(1,SS_NET,25)                 // 80040059
  181. #define HXR_PORT_IN_USE                 MAKE_HX_RESULT(1,SS_NET,26)                 // 8004005a
  182. #define HXR_LOADTEST_NOT_SUPPORTED      MAKE_HX_RESULT(1,SS_NET,27)                 // 8004005b
  183. #define HXR_TCP_CONNECT                 MAKE_HX_RESULT(0,SS_NET,32)                 // 00040060
  184. #define HXR_TCP_RECONNECT               MAKE_HX_RESULT(0,SS_NET,33)                 // 00040061
  185. #define HXR_TCP_FAILED                  MAKE_HX_RESULT(1,SS_NET,34)                 // 80040062
  186. #define HXR_AUTH_SOCKET_CREATE_FAILURE  MAKE_HX_RESULT(1,SS_NET,35)                 // 80040063
  187. #define HXR_AUTH_TCP_CONNECT_FAILURE    MAKE_HX_RESULT(1,SS_NET,36)                 // 80040064
  188. #define HXR_AUTH_TCP_CONNECT_TIMEOUT    MAKE_HX_RESULT(1,SS_NET,37)                 // 80040065
  189. #define HXR_AUTH_FAILURE                MAKE_HX_RESULT(1,SS_NET,38)                 // 80040066
  190. #define HXR_AUTH_REQ_PARAMETER_MISSING  MAKE_HX_RESULT(1,SS_NET,39)                 // 80040067
  191. #define HXR_DNS_RESOLVE_FAILURE         MAKE_HX_RESULT(1,SS_NET,40)                 // 80040068
  192. #define HXR_AUTH_SUCCEEDED              MAKE_HX_RESULT(0,SS_NET,40)                 // 00040068
  193. #define HXR_PULL_AUTHENTICATION_FAILED  MAKE_HX_RESULT(1,SS_NET,41)                 // 80040069
  194. #define HXR_BIND_ERROR                  MAKE_HX_RESULT(1,SS_NET,42)                 // 8004006a
  195. #define HXR_PULL_PING_TIMEOUT           MAKE_HX_RESULT(1,SS_NET,43)                 // 8004006b
  196. #define HXR_AUTH_TCP_FAILED             MAKE_HX_RESULT(1,SS_NET,44)                 // 8004006c
  197. #define HXR_UNEXPECTED_STREAM_END       MAKE_HX_RESULT(1,SS_NET,45)                 // 8004006d
  198. #define HXR_AUTH_READ_TIMEOUT           MAKE_HX_RESULT(1,SS_NET,46)                 // 8004006e
  199. #define HXR_AUTH_CONNECTION_FAILURE     MAKE_HX_RESULT(1,SS_NET,47)                 // 8004006f
  200. #define HXR_BLOCKED                     MAKE_HX_RESULT(1,SS_NET,48)                 // 80040070
  201. #define HXR_NOTENOUGH_PREDECBUF         MAKE_HX_RESULT(1,SS_NET,49)                 // 80040071
  202. #define HXR_AT_END                      MAKE_HX_RESULT(0,SS_FIL,0)                  // 00040080
  203. #define HXR_INVALID_FILE                MAKE_HX_RESULT(1,SS_FIL,1)                  // 80040081
  204. #define HXR_INVALID_PATH                MAKE_HX_RESULT(1,SS_FIL,2)                  // 80040082
  205. #define HXR_RECORD                      MAKE_HX_RESULT(1,SS_FIL,3)                  // 80040083
  206. #define HXR_RECORD_WRITE                MAKE_HX_RESULT(1,SS_FIL,4)                  // 80040084
  207. #define HXR_TEMP_FILE                   MAKE_HX_RESULT(1,SS_FIL,5)                  // 80040085
  208. #define HXR_ALREADY_OPEN                MAKE_HX_RESULT(1,SS_FIL,6)                  // 80040086
  209. #define HXR_SEEK_PENDING                MAKE_HX_RESULT(1,SS_FIL,7)                  // 80040087
  210. #define HXR_CANCELLED                   MAKE_HX_RESULT(1,SS_FIL,8)                  // 80040088
  211. #define HXR_FILE_NOT_FOUND              MAKE_HX_RESULT(1,SS_FIL,9)                  // 80040089
  212. #define HXR_WRITE_ERROR                 MAKE_HX_RESULT(1,SS_FIL,10)                 // 8004008a
  213. #define HXR_FILE_EXISTS                 MAKE_HX_RESULT(1,SS_FIL,11)                 // 8004008b
  214. #define HXR_FILE_NOT_OPEN               MAKE_HX_RESULT(1,SS_FIL,12)                 // 8004008c
  215. #define HXR_ADVISE_PREFER_LINEAR        MAKE_HX_RESULT(0,SS_FIL,13)                 // 0004008d
  216. #define HXR_PARSE_ERROR                 MAKE_HX_RESULT(1,SS_FIL,14)                 // 8004008e
  217. #define HXR_ADVISE_NOASYNC_SEEK         MAKE_HX_RESULT(0,SS_FIL,15)                 // 0004008f
  218. #define HXR_HEADER_PARSE_ERROR          MAKE_HX_RESULT(1,SS_FIL,16)                 // 80040090
  219. #define HXR_CORRUPT_FILE MAKE_HX_RESULT(1,SS_FIL,17)     // 80040091
  220. #define HXR_BAD_SERVER                  MAKE_HX_RESULT(1,SS_PRT,0)                  // 800400c0
  221. #define HXR_ADVANCED_SERVER             MAKE_HX_RESULT(1,SS_PRT,1)                  // 800400c1
  222. #define HXR_OLD_SERVER                  MAKE_HX_RESULT(1,SS_PRT,2)                  // 800400c2
  223. #define HXR_REDIRECTION                 MAKE_HX_RESULT(0,SS_PRT,3) /* XXX */        // 000400c3
  224. #define HXR_SERVER_ALERT                MAKE_HX_RESULT(1,SS_PRT,4)                  // 800400c4
  225. #define HXR_PROXY                       MAKE_HX_RESULT(1,SS_PRT,5)                  // 800400c5
  226. #define HXR_PROXY_RESPONSE              MAKE_HX_RESULT(1,SS_PRT,6)                  // 800400c6
  227. #define HXR_ADVANCED_PROXY              MAKE_HX_RESULT(1,SS_PRT,7)                  // 800400c7
  228. #define HXR_OLD_PROXY                   MAKE_HX_RESULT(1,SS_PRT,8)                  // 800400c8
  229. #define HXR_INVALID_PROTOCOL            MAKE_HX_RESULT(1,SS_PRT,9)                  // 800400c9
  230. #define HXR_INVALID_URL_OPTION          MAKE_HX_RESULT(1,SS_PRT,10)                 // 800400ca
  231. #define HXR_INVALID_URL_HOST            MAKE_HX_RESULT(1,SS_PRT,11)                 // 800400cb
  232. #define HXR_INVALID_URL_PATH            MAKE_HX_RESULT(1,SS_PRT,12)                 // 800400cc
  233. #define HXR_HTTP_CONTENT_NOT_FOUND      MAKE_HX_RESULT(1,SS_PRT,13)                 // 800400cd
  234. #define HXR_NOT_AUTHORIZED              MAKE_HX_RESULT(1,SS_PRT,14)                 // 800400ce
  235. #define HXR_UNEXPECTED_MSG              MAKE_HX_RESULT(1,SS_PRT,15)                 // 800400cf
  236. #define HXR_BAD_TRANSPORT               MAKE_HX_RESULT(1,SS_PRT,16)                 // 800400d0
  237. #define HXR_NO_SESSION_ID               MAKE_HX_RESULT(1,SS_PRT,17)                 // 800400d1
  238. #define HXR_PROXY_DNR                   MAKE_HX_RESULT(1,SS_PRT,18)                 // 800400d2
  239. #define HXR_PROXY_NET_CONNECT           MAKE_HX_RESULT(1,SS_PRT,19)                 // 800400d3
  240. #define HXR_AGGREGATE_OP_NOT_ALLOWED    MAKE_HX_RESULT(1,SS_PRT,20)                 // 800400d4
  241. #define HXR_RIGHTS_EXPIRED              MAKE_HX_RESULT(1,SS_PRT,21)                 // 800400d5
  242. #define HXR_NOT_MODIFIED                MAKE_HX_RESULT(1,SS_PRT,22)                 // 800400d6
  243. #define HXR_FORBIDDEN                   MAKE_HX_RESULT(1,SS_PRT,23)                 // 800400d7
  244. #define HXR_AUDIO_DRIVER                MAKE_HX_RESULT(1,SS_AUD,0)                  // 80040100
  245. #define HXR_LATE_PACKET                 MAKE_HX_RESULT(1,SS_AUD,1)                  // 80040101
  246. #define HXR_OVERLAPPED_PACKET           MAKE_HX_RESULT(1,SS_AUD,2)                  // 80040102
  247. #define HXR_OUTOFORDER_PACKET           MAKE_HX_RESULT(1,SS_AUD,3)                  // 80040103
  248. #define HXR_NONCONTIGUOUS_PACKET        MAKE_HX_RESULT(1,SS_AUD,4)                  // 80040104
  249. #define HXR_OPEN_NOT_PROCESSED          MAKE_HX_RESULT(1,SS_INT,0)                  // 80040140
  250. #define HXR_WINDRAW_EXCEPTION           MAKE_HX_RESULT(1,SS_INT,1)                  // 80040141
  251. #define HXR_EXPIRED                     MAKE_HX_RESULT(1,SS_USR,0)                  // 80040180
  252. #define HXR_INVALID_INTERLEAVER         MAKE_HX_RESULT(1,SS_DPR,0)                  // 80040fc0
  253. #define HXR_BAD_FORMAT                  MAKE_HX_RESULT(1,SS_DPR,1)                  // 80040fc1
  254. #define HXR_CHUNK_MISSING               MAKE_HX_RESULT(1,SS_DPR,2)                  // 80040fc2
  255. #define HXR_INVALID_STREAM              MAKE_HX_RESULT(1,SS_DPR,3)                  // 80040fc3
  256. #define HXR_DNR                         MAKE_HX_RESULT(1,SS_DPR,4)                  // 80040fc4
  257. #define HXR_OPEN_DRIVER                 MAKE_HX_RESULT(1,SS_DPR,5)                  // 80040fc5
  258. #define HXR_UPGRADE                     MAKE_HX_RESULT(1,SS_DPR,6)                  // 80040fc6
  259. #define HXR_NOTIFICATION                MAKE_HX_RESULT(1,SS_DPR,7)                  // 80040fc7
  260. #define HXR_NOT_NOTIFIED                MAKE_HX_RESULT(1,SS_DPR,8)                  // 80040fc8
  261. #define HXR_STOPPED                     MAKE_HX_RESULT(1,SS_DPR,9)                  // 80040fc9
  262. #define HXR_CLOSED                      MAKE_HX_RESULT(1,SS_DPR,10)                 // 80040fca
  263. #define HXR_INVALID_WAV_FILE            MAKE_HX_RESULT(1,SS_DPR,11)                 // 80040fcb
  264. #define HXR_NO_SEEK                     MAKE_HX_RESULT(1,SS_DPR,12)                 // 80040fcc
  265. #define HXR_DEC_INITED                  MAKE_HX_RESULT(1,SS_DEC,0)                  // 80040200
  266. #define HXR_DEC_NOT_FOUND               MAKE_HX_RESULT(1,SS_DEC,1)                  // 80040201
  267. #define HXR_DEC_INVALID                 MAKE_HX_RESULT(1,SS_DEC,2)                  // 80040202
  268. #define HXR_DEC_TYPE_MISMATCH           MAKE_HX_RESULT(1,SS_DEC,3)                  // 80040203
  269. #define HXR_DEC_INIT_FAILED             MAKE_HX_RESULT(1,SS_DEC,4)                  // 80040204
  270. #define HXR_DEC_NOT_INITED              MAKE_HX_RESULT(1,SS_DEC,5)                  // 80040205
  271. #define HXR_DEC_DECOMPRESS              MAKE_HX_RESULT(1,SS_DEC,6)                  // 80040206
  272. #define HXR_OBSOLETE_VERSION            MAKE_HX_RESULT(1,SS_DEC,7)                  // 80040207
  273. #define HXR_DEC_AT_END                  MAKE_HX_RESULT(0,SS_DEC,8)                  // 00040208
  274. #define HXR_ENC_FILE_TOO_SMALL          MAKE_HX_RESULT(1,SS_ENC,0)                  // 80040240
  275. #define HXR_ENC_UNKNOWN_FILE            MAKE_HX_RESULT(1,SS_ENC,1)                  // 80040241
  276. #define HXR_ENC_BAD_CHANNELS            MAKE_HX_RESULT(1,SS_ENC,2)                  // 80040242
  277. #define HXR_ENC_BAD_SAMPSIZE            MAKE_HX_RESULT(1,SS_ENC,3)                  // 80040243
  278. #define HXR_ENC_BAD_SAMPRATE            MAKE_HX_RESULT(1,SS_ENC,4)                  // 80040244
  279. #define HXR_ENC_INVALID                 MAKE_HX_RESULT(1,SS_ENC,5)                  // 80040245
  280. #define HXR_ENC_NO_OUTPUT_FILE          MAKE_HX_RESULT(1,SS_ENC,6)                  // 80040246
  281. #define HXR_ENC_NO_INPUT_FILE           MAKE_HX_RESULT(1,SS_ENC,7)                  // 80040247
  282. #define HXR_ENC_NO_OUTPUT_PERMISSIONS   MAKE_HX_RESULT(1,SS_ENC,8)                  // 80040248
  283. #define HXR_ENC_BAD_FILETYPE            MAKE_HX_RESULT(1,SS_ENC,9)                  // 80040249
  284. #define HXR_ENC_INVALID_VIDEO           MAKE_HX_RESULT(1,SS_ENC,10)                 // 8004024a
  285. #define HXR_ENC_INVALID_AUDIO           MAKE_HX_RESULT(1,SS_ENC,11)                 // 8004024b
  286. #define HXR_ENC_NO_VIDEO_CAPTURE        MAKE_HX_RESULT(1,SS_ENC,12)                 // 8004024c
  287. #define HXR_ENC_INVALID_VIDEO_CAPTURE   MAKE_HX_RESULT(1,SS_ENC,13)                 // 8004024d
  288. #define HXR_ENC_NO_AUDIO_CAPTURE        MAKE_HX_RESULT(1,SS_ENC,14)                 // 8004024e
  289. #define HXR_ENC_INVALID_AUDIO_CAPTURE   MAKE_HX_RESULT(1,SS_ENC,15)                 // 8004024f
  290. #define HXR_ENC_TOO_SLOW_FOR_LIVE       MAKE_HX_RESULT(1,SS_ENC,16)                 // 80040250
  291. #define HXR_ENC_ENGINE_NOT_INITIALIZED  MAKE_HX_RESULT(1,SS_ENC,17)                 // 80040251
  292. #define HXR_ENC_CODEC_NOT_FOUND         MAKE_HX_RESULT(1,SS_ENC,18)                 // 80040252
  293. #define HXR_ENC_CODEC_NOT_INITIALIZED   MAKE_HX_RESULT(1,SS_ENC,19)                 // 80040253
  294. #define HXR_ENC_INVALID_INPUT_DIMENSIONS MAKE_HX_RESULT(1,SS_ENC,20)                // 80040254
  295. #define HXR_ENC_MESSAGE_IGNORED         MAKE_HX_RESULT(1,SS_ENC,21)                 // 80040255
  296. #define HXR_ENC_NO_SETTINGS             MAKE_HX_RESULT(1,SS_ENC,22)                 // 80040256
  297. #define HXR_ENC_NO_OUTPUT_TYPES         MAKE_HX_RESULT(1,SS_ENC,23)                 // 80040257
  298. #define HXR_ENC_IMPROPER_STATE          MAKE_HX_RESULT(1,SS_ENC,24)                 // 80040258
  299. #define HXR_ENC_INVALID_SERVER          MAKE_HX_RESULT(1,SS_ENC,25)                 // 80040259
  300. #define HXR_ENC_INVALID_TEMP_PATH       MAKE_HX_RESULT(1,SS_ENC,26)                 // 8004025a
  301. #define HXR_ENC_MERGE_FAIL              MAKE_HX_RESULT(1,SS_ENC,27)                 // 8004025b
  302. #define HXR_BIN_DATA_NOT_FOUND          MAKE_HX_RESULT(0,SS_ENC,28)                 // 0004025c
  303. #define HXR_BIN_END_OF_DATA             MAKE_HX_RESULT(0,SS_ENC,29)                 // 0004025d
  304. #define HXR_BIN_DATA_PURGED             MAKE_HX_RESULT(1,SS_ENC,30)                 // 8004025e
  305. #define HXR_BIN_FULL                    MAKE_HX_RESULT(1,SS_ENC,31)                 // 8004025f
  306. #define HXR_BIN_OFFSET_PAST_END         MAKE_HX_RESULT(1,SS_ENC,32)                 // 80040260
  307. #define HXR_ENC_NO_ENCODED_DATA         MAKE_HX_RESULT(1,SS_ENC,33)                 // 80040261
  308. #define HXR_ENC_INVALID_DLL             MAKE_HX_RESULT(1,SS_ENC,34)                 // 80040262
  309. #define HXR_NOT_INDEXABLE               MAKE_HX_RESULT(1,SS_ENC,35)                 // 80040263
  310. #define HXR_ENC_NO_BROWSER              MAKE_HX_RESULT(1,SS_ENC,36)                 // 80040264
  311. #define HXR_ENC_NO_FILE_TO_SERVER       MAKE_HX_RESULT(1,SS_ENC,37)                 // 80040265
  312. #define HXR_ENC_INSUFFICIENT_DISK_SPACE MAKE_HX_RESULT(1,SS_ENC,38)                 // 80040266
  313. #define HXR_ENC_SAMPLE_DISCARDED MAKE_HX_RESULT(0,SS_ENC,39)                        // 00040267
  314. #define HXR_ENC_RV10_FRAME_TOO_LARGE    MAKE_HX_RESULT(1,SS_ENC,40)                 // 80040268
  315. #define HXR_S_NOT_HANDLED                       MAKE_HX_RESULT(0,SS_ENC,41)         // 00040269
  316. #define HXR_S_END_OF_STREAM                     MAKE_HX_RESULT(0,SS_ENC,42)         // 0004026a
  317. #define HXR_S_JOBFILE_INCOMPLETE                MAKE_HX_RESULT( 0, SS_ENC, 43 )
  318. #define HXR_S_NOTHING_TO_SERIALIZE              MAKE_HX_RESULT( 0, SS_ENC, 44 )
  319. #define HXR_SIZENOTSET                                  MAKE_HX_RESULT(1,SS_ENC,45)
  320. #define HXR_ALREADY_COMMITTED                   MAKE_HX_RESULT(1,SS_ENC,46)
  321. #define HXR_BUFFERS_OUTSTANDING         MAKE_HX_RESULT(1,SS_ENC,47)
  322. #define HXR_NOT_COMMITTED                               MAKE_HX_RESULT(1,SS_ENC,48)
  323. #define HXR_SAMPLE_TIME_NOT_SET         MAKE_HX_RESULT(1,SS_ENC,49)
  324. #define HXR_TIMEOUT                                     MAKE_HX_RESULT(1,SS_ENC,50)
  325. #define HXR_WRONGSTATE                                  MAKE_HX_RESULT(1,SS_ENC,51)
  326. #define HXR_RMT_USAGE_ERROR                     MAKE_HX_RESULT(1,SS_RMT,1)          // 800403c1
  327. #define HXR_RMT_INVALID_ENDTIME                 MAKE_HX_RESULT(1,SS_RMT,2)          // 800403c2
  328. #define HXR_RMT_MISSING_INPUT_FILE              MAKE_HX_RESULT(1,SS_RMT,3)          // 800403c3
  329. #define HXR_RMT_MISSING_OUTPUT_FILE             MAKE_HX_RESULT(1,SS_RMT,4)          // 800403c4
  330. #define HXR_RMT_INPUT_EQUALS_OUTPUT_FILE        MAKE_HX_RESULT(1,SS_RMT,5)          // 800403c5
  331. #define HXR_RMT_UNSUPPORTED_AUDIO_VERSION       MAKE_HX_RESULT(1,SS_RMT,6)          // 800403c6
  332. #define HXR_RMT_DIFFERENT_AUDIO                 MAKE_HX_RESULT(1,SS_RMT,7)          // 800403c7
  333. #define HXR_RMT_DIFFERENT_VIDEO                 MAKE_HX_RESULT(1,SS_RMT,8)          // 800403c8
  334. #define HXR_RMT_PASTE_MISSING_STREAM            MAKE_HX_RESULT(1,SS_RMT,9)          // 800403c9
  335. #define HXR_RMT_END_OF_STREAM                   MAKE_HX_RESULT(1,SS_RMT,10)         // 800403ca
  336. #define HXR_RMT_IMAGE_MAP_PARSE_ERROR           MAKE_HX_RESULT(1,SS_RMT,11)         // 800403cb
  337. #define HXR_RMT_INVALID_IMAGEMAP_FILE           MAKE_HX_RESULT(1,SS_RMT,12)         // 800403cc
  338. #define HXR_RMT_EVENT_PARSE_ERROR               MAKE_HX_RESULT(1,SS_RMT,13)         // 800403cd
  339. #define HXR_RMT_INVALID_EVENT_FILE              MAKE_HX_RESULT(1,SS_RMT,14)         // 800403ce
  340. #define HXR_RMT_INVALID_OUTPUT_FILE             MAKE_HX_RESULT(1,SS_RMT,15)         // 800403cf
  341. #define HXR_RMT_INVALID_DURATION                MAKE_HX_RESULT(1,SS_RMT,16)         // 800403d0
  342. #define HXR_RMT_NO_DUMP_FILES                   MAKE_HX_RESULT(1,SS_RMT,17)         // 800403d1
  343. #define HXR_RMT_NO_EVENT_DUMP_FILE              MAKE_HX_RESULT(1,SS_RMT,18)         // 800403d2
  344. #define HXR_RMT_NO_IMAP_DUMP_FILE               MAKE_HX_RESULT(1,SS_RMT,19)         // 800403d3
  345. #define HXR_RMT_NO_DATA                         MAKE_HX_RESULT(1,SS_RMT,20)         // 800403d4
  346. #define HXR_RMT_EMPTY_STREAM                    MAKE_HX_RESULT(1,SS_RMT,21)         // 800403d5
  347. #define HXR_RMT_READ_ONLY_FILE                  MAKE_HX_RESULT(1,SS_RMT,22)         // 800403d6
  348. #define HXR_RMT_PASTE_MISSING_AUDIO_STREAM      MAKE_HX_RESULT(1,SS_RMT,23)         // 800403d7
  349. #define HXR_RMT_PASTE_MISSING_VIDEO_STREAM      MAKE_HX_RESULT(1,SS_RMT,24)         // 800403d8
  350. #define HXR_RMT_ENCRYPTED_CONTENT               MAKE_HX_RESULT(1,SS_RMT,25)         // 800403d9
  351. #define HXR_PROP_NOT_FOUND              MAKE_HX_RESULT(1,SS_REG,1)                  // 80040281
  352. #define HXR_PROP_NOT_COMPOSITE          MAKE_HX_RESULT(1,SS_REG,2)                  // 80040282
  353. #define HXR_PROP_DUPLICATE              MAKE_HX_RESULT(1,SS_REG,3)                  // 80040283
  354. #define HXR_PROP_TYPE_MISMATCH          MAKE_HX_RESULT(1,SS_REG,4)                  // 80040284
  355. #define HXR_PROP_ACTIVE                 MAKE_HX_RESULT(1,SS_REG,5)                  // 80040285
  356. #define HXR_PROP_INACTIVE               MAKE_HX_RESULT(1,SS_REG,6)                  // 80040286
  357. #define HXR_PROP_VAL_UNDERFLOW          MAKE_HX_RESULT(1,SS_REG,7)                  // 80040287
  358. #define HXR_PROP_VAL_OVERFLOW           MAKE_HX_RESULT(1,SS_REG,8)                  // 80040288
  359. #define HXR_PROP_VAL_LT_LBOUND          MAKE_HX_RESULT(1,SS_REG,9)                  // 80040289
  360. #define HXR_PROP_VAL_GT_UBOUND          MAKE_HX_RESULT(1,SS_REG,10)                 // 8004028a
  361. #define HXR_PROP_DELETE_PENDING         MAKE_HX_RESULT(0,SS_REG,11)                 // 0004028b
  362. #define HXR_COULDNOTINITCORE            MAKE_HX_RESULT(1,SS_MSC,1)                  // 800401c1
  363. #define HXR_PERFECTPLAY_NOT_SUPPORTED   MAKE_HX_RESULT(1,SS_MSC,2)                  // 800401c2
  364. #define HXR_NO_LIVE_PERFECTPLAY         MAKE_HX_RESULT(1,SS_MSC,3)                  // 800401c3
  365. #define HXR_PERFECTPLAY_NOT_ALLOWED     MAKE_HX_RESULT(1,SS_MSC,4)                  // 800401c4
  366. #define HXR_NO_CODECS                   MAKE_HX_RESULT(1,SS_MSC,5)                  // 800401c5
  367. #define HXR_SLOW_MACHINE                MAKE_HX_RESULT(1,SS_MSC,6)                  // 800401c6
  368. #define HXR_FORCE_PERFECTPLAY           MAKE_HX_RESULT(1,SS_MSC,7)                  // 800401c7
  369. #define HXR_INVALID_HTTP_PROXY_HOST     MAKE_HX_RESULT(1,SS_MSC,8)                  // 800401c8
  370. #define HXR_INVALID_METAFILE            MAKE_HX_RESULT(1,SS_MSC,9)                  // 800401c9
  371. #define HXR_BROWSER_LAUNCH              MAKE_HX_RESULT(1,SS_MSC,10)                 // 800401ca
  372. #define HXR_VIEW_SOURCE_NOCLIP          MAKE_HX_RESULT(1,SS_MSC,11)                 // 800401cb
  373. #define HXR_VIEW_SOURCE_DISSABLED       MAKE_HX_RESULT(1,SS_MSC,12)                 // 800401cc
  374. #define HXR_TIMELINE_SUSPENDED          MAKE_HX_RESULT(1,SS_MSC,14)                 // 800401ce
  375. #define HXR_BUFFER_NOT_AVAILABLE        MAKE_HX_RESULT(1,SS_MSC,15)                 // 800401cf
  376. #define HXR_COULD_NOT_DISPLAY           MAKE_HX_RESULT(1,SS_MSC,16)                 // 800401d0
  377. #define HXR_VSRC_DISABLED               MAKE_HX_RESULT(1,SS_MSC,17)                 // 800401d1
  378. #define HXR_VSRC_NOCLIP                 MAKE_HX_RESULT(1,SS_MSC,18)                 // 800401d2
  379. #define HXR_RESOURCE_NOT_CACHED         MAKE_HX_RESULT(1,SS_RSC,1)                  // 80040301
  380. #define HXR_RESOURCE_NOT_FOUND          MAKE_HX_RESULT(1,SS_RSC,2)                  // 80040302
  381. #define HXR_RESOURCE_CLOSE_FILE_FIRST   MAKE_HX_RESULT(1,SS_RSC,3)                  // 80040303
  382. #define HXR_RESOURCE_NODATA             MAKE_HX_RESULT(1,SS_RSC,4)                  // 80040304
  383. #define HXR_RESOURCE_BADFILE            MAKE_HX_RESULT(1,SS_RSC,5)                  // 80040305
  384. #define HXR_RESOURCE_PARTIALCOPY        MAKE_HX_RESULT(1,SS_RSC,6)                  // 80040306
  385. #define HXR_PPV_NO_USER                 MAKE_HX_RESULT(1,SS_PPV,0)                  // 800402c0
  386. #define HXR_PPV_GUID_READ_ONLY          MAKE_HX_RESULT(1,SS_PPV,1)                  // 800402c1
  387. #define HXR_PPV_GUID_COLLISION          MAKE_HX_RESULT(1,SS_PPV,2)                  // 800402c2
  388. #define HXR_REGISTER_GUID_EXISTS        MAKE_HX_RESULT(1,SS_PPV,3)                  // 800402c3
  389. #define HXR_PPV_AUTHORIZATION_FAILED    MAKE_HX_RESULT(1,SS_PPV,4)                  // 800402c4
  390. #define HXR_PPV_OLD_PLAYER              MAKE_HX_RESULT(1,SS_PPV,5)                  // 800402c5
  391. #define HXR_PPV_ACCOUNT_LOCKED          MAKE_HX_RESULT(1,SS_PPV,6)                  // 800402c6
  392. // #define HXR_PPV_PROTOCOL_IGNORES     MAKE_HX_RESULT(1,SS_PPV,7)
  393. #define HXR_PPV_DBACCESS_ERROR          MAKE_HX_RESULT(1,SS_PPV,8)                  // 800402c8
  394. #define HXR_PPV_USER_ALREADY_EXISTS     MAKE_HX_RESULT(1,SS_PPV,9)                  // 800402c9
  395. // auto-upgrade (RealUpdate) errors
  396. #define HXR_UPG_AUTH_FAILED             MAKE_HX_RESULT(1,SS_UPG,0)                  // 80040340
  397. #define HXR_UPG_CERT_AUTH_FAILED        MAKE_HX_RESULT(1,SS_UPG,1)                  // 80040341
  398. #define HXR_UPG_CERT_EXPIRED            MAKE_HX_RESULT(1,SS_UPG,2)                  // 80040342
  399. #define HXR_UPG_CERT_REVOKED            MAKE_HX_RESULT(1,SS_UPG,3)                  // 80040343
  400. #define HXR_UPG_RUP_BAD                 MAKE_HX_RESULT(1,SS_UPG,4)                  // 80040344
  401. #define HXR_UPG_SYSTEM_BUSY             MAKE_HX_RESULT(1,SS_UPG,5)                  // 80040345
  402. // auto-config errors
  403. #define HXR_AUTOCFG_SUCCESS             MAKE_HX_RESULT(1,SS_CFG,0)
  404. #define HXR_AUTOCFG_FAILED              MAKE_HX_RESULT(1,SS_CFG,1)
  405. #define HXR_AUTOCFG_ABORT               MAKE_HX_RESULT(1,SS_CFG,2)
  406. //producer activex errors.
  407. #define HXR_ENC_AX_INIT_FAILED                  MAKE_HX_RESULT(1,SS_ENC_AX,0)
  408. #define HXR_ENC_AX_NOTVALID_WHILE_ENCODING      MAKE_HX_RESULT(1,SS_ENC_AX,1)
  409. #define HXR_ENC_AX_REALMEDIAEVENTS_DISABLED     MAKE_HX_RESULT(1,SS_ENC_AX,2)
  410. #define HXR_ENC_AX_EVENT_START_TIME_DECREASING  MAKE_HX_RESULT(1,SS_ENC_AX,3)
  411. #define HXR_ENC_AX_FAILED_MEDIASINK_INPUT       MAKE_HX_RESULT(1,SS_ENC_AX,4)
  412. #define HXR_ENC_AX_INVALID_EVENT_TYPE           MAKE_HX_RESULT(1,SS_ENC_AX,5)
  413. #define HXR_ENC_AX_JOB_NOT_SET                  MAKE_HX_RESULT(1,SS_ENC_AX,6)
  414. #define HXR_ENC_AX_NOTVALID_WHILE_NOTENCODING MAKE_HX_RESULT(1,SS_ENC_AX,7)
  415. #define HXR_ENC_AX_NO_AUDIO_GAIN_SET MAKE_HX_RESULT(1,SS_ENC_AX,8)
  416. // RealPix errors
  417. #define HXR_UNKNOWN_IMAGE               MAKE_HX_RESULT(1,SS_RPX,0)
  418. #define HXR_UNKNOWN_EFFECT              MAKE_HX_RESULT(1,SS_RPX,1)
  419. #define HXR_SENDIMAGE_ABORTED           MAKE_HX_RESULT(0,SS_RPX,2)
  420. #define HXR_SENDEFFECT_ABORTED          MAKE_HX_RESULT(0,SS_RPX,3)
  421. // server alert errors
  422. #define HXR_SE_MIN_VALUE                    MAKE_HX_RESULT(1, SS_SAM, 0)            // 80041800
  423. #define HXR_SE_NO_ERROR                     MAKE_HX_RESULT(1, SS_SAM, 1)            // 80041901
  424. #define HXR_SE_INVALID_VERSION              MAKE_HX_RESULT(1, SS_SAM, 2)            // 80041902
  425. #define HXR_SE_INVALID_FORMAT               MAKE_HX_RESULT(1, SS_SAM, 3)            // 80041903
  426. #define HXR_SE_INVALID_BANDWIDTH            MAKE_HX_RESULT(1, SS_SAM, 4)            // 80041904
  427. #define HXR_SE_INVALID_PATH                 MAKE_HX_RESULT(1, SS_SAM, 5)            // 80041905
  428. #define HXR_SE_UNKNOWN_PATH                 MAKE_HX_RESULT(1, SS_SAM, 6)            // 80041906
  429. #define HXR_SE_INVALID_PROTOCOL             MAKE_HX_RESULT(1, SS_SAM, 7)            // 80041907
  430. #define HXR_SE_INVALID_PLAYER_ADDR          MAKE_HX_RESULT(1, SS_SAM, 8)            // 80041908
  431. #define HXR_SE_LOCAL_STREAMS_PROHIBITED     MAKE_HX_RESULT(1, SS_SAM, 9)            // 80041909
  432. #define HXR_SE_SERVER_FULL                  MAKE_HX_RESULT(1, SS_SAM, 10)           // 8004190a
  433. #define HXR_SE_REMOTE_STREAMS_PROHIBITED    MAKE_HX_RESULT(1, SS_SAM, 11)           // 8004190b
  434. #define HXR_SE_EVENT_STREAMS_PROHIBITED     MAKE_HX_RESULT(1, SS_SAM, 12)           // 8004190c
  435. #define HXR_SE_INVALID_HOST                 MAKE_HX_RESULT(1, SS_SAM, 13)           // 8004190d
  436. #define HXR_SE_NO_CODEC                     MAKE_HX_RESULT(1, SS_SAM, 14)           // 8004190e
  437. #define HXR_SE_LIVEFILE_INVALID_BWN         MAKE_HX_RESULT(1, SS_SAM, 15)           // 8004190f
  438. #define HXR_SE_UNABLE_TO_FULFILL            MAKE_HX_RESULT(1, SS_SAM, 16)           // 80041910
  439. #define HXR_SE_MULTICAST_DELIVERY_ONLY      MAKE_HX_RESULT(1, SS_SAM, 17)           // 80041911
  440. #define HXR_SE_LICENSE_EXCEEDED             MAKE_HX_RESULT(1, SS_SAM, 18)           // 80041912
  441. #define HXR_SE_LICENSE_UNAVAILABLE          MAKE_HX_RESULT(1, SS_SAM, 19)           // 80041913
  442. #define HXR_SE_INVALID_LOSS_CORRECTION      MAKE_HX_RESULT(1, SS_SAM, 20)           // 80041914
  443. #define HXR_SE_PROTOCOL_FAILURE             MAKE_HX_RESULT(1, SS_SAM, 21)           // 80041915
  444. #define HXR_SE_REALVIDEO_STREAMS_PROHIBITED MAKE_HX_RESULT(1, SS_SAM, 22)           // 80041916
  445. #define HXR_SE_REALAUDIO_STREAMS_PROHIBITED MAKE_HX_RESULT(1, SS_SAM, 23)           // 80041917
  446. #define HXR_SE_DATATYPE_UNSUPPORTED         MAKE_HX_RESULT(1, SS_SAM, 24)           // 80041918
  447. #define HXR_SE_DATATYPE_UNLICENSED          MAKE_HX_RESULT(1, SS_SAM, 25)           // 80041919
  448. #define HXR_SE_RESTRICTED_PLAYER            MAKE_HX_RESULT(1, SS_SAM, 26)           // 8004191a
  449. #define HXR_SE_STREAM_INITIALIZING          MAKE_HX_RESULT(1, SS_SAM, 27)           // 8004191b
  450. #define HXR_SE_INVALID_PLAYER               MAKE_HX_RESULT(1, SS_SAM, 28)           // 8004191c
  451. #define HXR_SE_PLAYER_PLUS_ONLY             MAKE_HX_RESULT(1, SS_SAM, 29)           // 8004191d
  452. #define HXR_SE_NO_EMBEDDED_PLAYERS          MAKE_HX_RESULT(1, SS_SAM, 30)           // 8004191e
  453. #define HXR_SE_PNA_PROHIBITED               MAKE_HX_RESULT(1, SS_SAM, 31)           // 8004191f
  454. #define HXR_SE_AUTHENTICATION_UNSUPPORTED   MAKE_HX_RESULT(1, SS_SAM, 32)           // 80041920
  455. #define HXR_SE_MAX_FAILED_AUTHENTICATIONS   MAKE_HX_RESULT(1, SS_SAM, 33)           // 80041921
  456. #define HXR_SE_AUTH_ACCESS_DENIED           MAKE_HX_RESULT(1, SS_SAM, 34)           // 80041922
  457. #define HXR_SE_AUTH_UUID_READ_ONLY          MAKE_HX_RESULT(1, SS_SAM, 35)           // 80041923
  458. #define HXR_SE_AUTH_UUID_NOT_UNIQUE         MAKE_HX_RESULT(1, SS_SAM, 36)           // 80041924
  459. #define HXR_SE_AUTH_NO_SUCH_USER            MAKE_HX_RESULT(1, SS_SAM, 37)           // 80041925
  460. #define HXR_SE_AUTH_REGISTRATION_SUCCEEDED  MAKE_HX_RESULT(1, SS_SAM, 38)           // 80041926
  461. #define HXR_SE_AUTH_REGISTRATION_FAILED     MAKE_HX_RESULT(1, SS_SAM, 39)           // 80041927
  462. #define HXR_SE_AUTH_REGISTRATION_GUID_REQUIRED MAKE_HX_RESULT(1, SS_SAM, 40)        // 80041928
  463. #define HXR_SE_AUTH_UNREGISTERED_PLAYER     MAKE_HX_RESULT(1, SS_SAM, 41)           // 80041929
  464. #define HXR_SE_AUTH_TIME_EXPIRED            MAKE_HX_RESULT(1, SS_SAM, 42)           // 8004192a
  465. #define HXR_SE_AUTH_NO_TIME_LEFT            MAKE_HX_RESULT(1, SS_SAM, 43)           // 8004192b
  466. #define HXR_SE_AUTH_ACCOUNT_LOCKED          MAKE_HX_RESULT(1, SS_SAM, 44)           // 8004192c
  467. #define HXR_SE_AUTH_INVALID_SERVER_CFG      MAKE_HX_RESULT(1, SS_SAM, 45)           // 8004192d
  468. #define HXR_SE_NO_MOBILE_DOWNLOAD           MAKE_HX_RESULT(1, SS_SAM, 46)           // 8004192e
  469. #define HXR_SE_NO_MORE_MULTI_ADDR           MAKE_HX_RESULT(1, SS_SAM, 47)           // 8004192f
  470. #define HXR_PE_PROXY_MAX_CONNECTIONS        MAKE_HX_RESULT(1, SS_SAM, 48)           // 80041930
  471. #define HXR_PE_PROXY_MAX_GW_BANDWIDTH       MAKE_HX_RESULT(1, SS_SAM, 49)           // 80041931
  472. #define HXR_PE_PROXY_MAX_BANDWIDTH          MAKE_HX_RESULT(1, SS_SAM, 50)           // 80041932
  473. #define HXR_SE_BAD_LOADTEST_PASSWORD        MAKE_HX_RESULT(1, SS_SAM, 51)           // 80041933
  474. #define HXR_SE_PNA_NOT_SUPPORTED            MAKE_HX_RESULT(1, SS_SAM, 52)           // 80041934
  475. #define HXR_PE_PROXY_ORIGIN_DISCONNECTED    MAKE_HX_RESULT(1, SS_SAM, 53)           // 80041935
  476. #define HXR_SE_INTERNAL_ERROR               MAKE_HX_RESULT(1, SS_SAM, 54)           // 80041936
  477. #define HXR_SE_MAX_VALUE                    MAKE_HX_RESULT(1, SS_SAM, 55)           // 80041937
  478. #define SA_OFFSET 2
  479. #define MAKE_SA(sa) HXR_SE_MIN_VALUE+sa+SA_OFFSET
  480. #define IS_SERVER_ALERT(sa) ((HXR_SE_MIN_VALUE < sa && sa < HXR_SE_MAX_VALUE) || sa == HXR_SERVER_ALERT)
  481. #define HXR_FAILED                      HXR_FAIL
  482. #ifdef _WIN16
  483. /*typedef UINT                          MMRESULT;*/
  484. #else
  485. #ifdef _WIN32
  486. #if defined(WIN32_PLATFORM_PSPC)
  487. #undef _HRESULT_TYPEDEF_
  488. #undef E_NOTIMPL
  489. #undef E_OUTOFMEMORY
  490. #undef E_INVALIDARG
  491. #undef E_NOINTERFACE
  492. #undef E_POINTER
  493. #undef E_HANDLE
  494. #undef E_ABORT
  495. #undef E_FAIL
  496. #undef E_ACCESSDENIED
  497. #endif /* defined(WIN32_PLATFORM_PSPC) */
  498. #define _HRESULT_TYPEDEF_(_sc) ((HRESULT)_sc)
  499. #define E_NOTIMPL                        _HRESULT_TYPEDEF_(0x80004001L)
  500. #define E_OUTOFMEMORY                    _HRESULT_TYPEDEF_(0x8007000EL)
  501. #define E_INVALIDARG                     _HRESULT_TYPEDEF_(0x80070057L)
  502. #define E_NOINTERFACE                    _HRESULT_TYPEDEF_(0x80004002L)
  503. #define E_POINTER                        _HRESULT_TYPEDEF_(0x80004003L)
  504. #define E_HANDLE                         _HRESULT_TYPEDEF_(0x80070006L)
  505. #define E_ABORT                          _HRESULT_TYPEDEF_(0x80004004L)
  506. #define E_FAIL                           _HRESULT_TYPEDEF_(0x80004005L)
  507. #define E_ACCESSDENIED                   _HRESULT_TYPEDEF_(0x80070005L)
  508. #else
  509. #define S_OK                    HXR_OK
  510. #define E_NOTIMPL               HXR_NOTIMPL
  511. #define E_INVALIDARG            HXR_INVALID_PARAMETER
  512. #define E_NOINTERFACE           HXR_NOINTERFACE
  513. #define E_POINTER               HXR_POINTER
  514. #define E_HANDLE                HXR_HANDLE
  515. #define E_ABORT                 HXR_ABORT
  516. #define E_FAIL                  HXR_FAIL
  517. #define E_ACCESSDENIES          HXR_ACCESSDENIED
  518. #endif  /* _WIN32 */
  519. #endif  /* _WIN16 */
  520. #define HX_STATUS_OK            HXR_OK
  521. #define HX_STATUS_FAILED        E_FAIL
  522. #endif /* _HXRESULT_H_ */