pnresult.h
上传用户:xjjlds
上传日期:2015-12-05
资源大小:22823k
文件大小:17k
源码类别:

多媒体编程

开发平台:

Visual C++

  1. /****************************************************************************
  2.  *
  3.  *  $Id: pnresult.h,v 1.1 2003/05/30 02:17:36 gabest Exp $
  4.  *
  5.  *  Copyright (C) 1995-1999 RealNetworks, Inc. All rights reserved.
  6.  *
  7.  *  http://www.real.com/devzone
  8.  *
  9.  *  This program contains proprietary
  10.  *  information of Progressive Networks, Inc, and is licensed
  11.  *  subject to restrictions on use and distribution.
  12.  *
  13.  *  This file contains the PN_RESULT type and it's associated result codes
  14.  */
  15. #ifndef _PNRESULT_H_
  16. #define _PNRESULT_H_
  17. /* Some files include this before pntypes.h. */
  18. #include "pntypes.h"
  19. typedef LONG32 PN_RESULT;
  20. #ifndef _WIN32
  21.     typedef PN_RESULT HRESULT;
  22. # define NOERROR 0
  23. #   define FACILITY_ITF 4
  24. #   define MAKE_HRESULT(sev,fac,code)
  25. ((HRESULT) (((unsigned long)(sev)<<31) | ((unsigned long)(fac)<<16) |   
  26. ((unsigned long)(code))) )
  27. #   define SUCCEEDED(Status) (((unsigned long)(Status)>>31) == 0)
  28. #   define FAILED(Status) (((unsigned long)(Status)>>31) != 0)
  29. #else
  30. #   ifndef _HRESULT_DEFINED
  31. typedef LONG32 HRESULT;
  32. #   endif /* _HRESULT_DEFINED */
  33. #   include <winerror.h>
  34. #endif /* _WIN32 */
  35. #define MAKE_PN_RESULT(sev,fac,code) MAKE_HRESULT(sev, FACILITY_ITF,     
  36.     ((fac << 6) | (code)))
  37. #define SS_GLO 0  /* General errors  */
  38. #define SS_NET 1  /* Networking errors */
  39. #define SS_FIL 2  /* File errors */
  40. #define SS_PRT 3  /* Protocol Error */
  41. #define SS_AUD 4  /* Audio error */
  42. #define SS_INT 5  /* General internal errors */
  43. #define SS_USR 6  /* The user is broken. */
  44. #define SS_MSC 7  /* Miscellaneous */
  45. #define SS_DEC 8  /* Decoder errors */
  46. #define SS_ENC 9  /* Encoder errors */
  47. #define SS_REG 10 /* Registry (not Windows registry ;) errors */
  48. #define SS_PPV 11 /* Pay Per View errors */
  49. #define SS_RSC 12 /* Errors for PNXRES */
  50. #define SS_UPG 13 /* Auto-upgrade & Certificate Errors          */
  51. #define SS_PLY 14 /* RealPlayer/Plus specific errors (USE ONLY IN /rpmisc/pub/rpresult.h) */
  52. #define SS_RMT 15 /* RMTools Errors */
  53. #define SS_CFG 16 /* AutoConfig Errors */
  54. #define SS_RPX 17 /* RealPix-related Errors */
  55. #define SS_XML 18 /* XML-related Errors */
  56. #define SS_DPR 63 /* Deprecated errors */
  57. #define PNR_NOTIMPL                     MAKE_HRESULT(1,0,0x4001)
  58. #define PNR_OUTOFMEMORY MAKE_HRESULT(1,7,0x000e)
  59. #define PNR_INVALID_PARAMETER MAKE_HRESULT(1,7,0x0057)
  60. #define PNR_NOINTERFACE                 MAKE_HRESULT(1,0,0x4002)
  61. #define PNR_POINTER                     MAKE_HRESULT(1,0,0x4003)
  62. #define PNR_HANDLE                      MAKE_HRESULT(1,7,0x0006)
  63. #define PNR_ABORT                       MAKE_HRESULT(1,0,0x4004)
  64. #define PNR_FAIL                        MAKE_HRESULT(1,0,0x4005)
  65. #define PNR_ACCESSDENIED                MAKE_HRESULT(1,7,0x0005)
  66. #define PNR_IGNORE MAKE_HRESULT(1,0,0x0006)
  67. #define PNR_OK MAKE_HRESULT(0,0,0)
  68. #define PNR_INVALID_OPERATION MAKE_PN_RESULT(1,SS_GLO,4)
  69. #define PNR_INVALID_VERSION MAKE_PN_RESULT(1,SS_GLO,5)
  70. #define PNR_INVALID_REVISION MAKE_PN_RESULT(1,SS_GLO,6)
  71. #define PNR_NOT_INITIALIZED MAKE_PN_RESULT(1,SS_GLO,7)
  72. #define PNR_DOC_MISSING MAKE_PN_RESULT(1,SS_GLO,8)
  73. #define PNR_UNEXPECTED                  MAKE_PN_RESULT(1,SS_GLO,9)
  74. #define PNR_INCOMPLETE MAKE_PN_RESULT(1,SS_GLO,12)
  75. #define PNR_BUFFERTOOSMALL MAKE_PN_RESULT(1,SS_GLO,13)
  76. #define PNR_UNSUPPORTED_VIDEO MAKE_PN_RESULT(1,SS_GLO,14)
  77. #define PNR_UNSUPPORTED_AUDIO MAKE_PN_RESULT(1,SS_GLO,15)
  78. #define PNR_INVALID_BANDWIDTH MAKE_PN_RESULT(1,SS_GLO,16)
  79. /* PNR_NO_RENDERER and PNR_NO_FILEFORMAT old value is being deprecated 
  80. #define PNR_NO_FILEFORMAT MAKE_PN_RESULT(1,SS_GLO,10)
  81. #define PNR_NO_RENDERER MAKE_PN_RESULT(1,SS_GLO,11)*/
  82. #define PNR_NO_RENDERER MAKE_PN_RESULT(1,SS_GLO,17)
  83. #define PNR_NO_FILEFORMAT MAKE_PN_RESULT(1,SS_GLO,17)
  84. #define PNR_MISSING_COMPONENTS MAKE_PN_RESULT(1,SS_GLO,17)
  85. #define PNR_ELEMENT_NOT_FOUND MAKE_PN_RESULT(0,SS_GLO,18)
  86. #define PNR_NOCLASS MAKE_PN_RESULT(0,SS_GLO,19)
  87. #define PNR_CLASS_NOAGGREGATION MAKE_PN_RESULT(0,SS_GLO,20)
  88. #define PNR_NOT_LICENSED MAKE_PN_RESULT(1,SS_GLO,21)
  89. #define PNR_NO_FILESYSTEM MAKE_PN_RESULT(1,SS_GLO,22)
  90. #define PNR_REQUEST_UPGRADE MAKE_PN_RESULT(1,SS_GLO,23)
  91. #define PNR_AWAITING_LICENSE MAKE_PN_RESULT(1,SS_GLO,24)
  92. #define PNR_BUFFERING MAKE_PN_RESULT(0,SS_NET,0)
  93. #define PNR_PAUSED MAKE_PN_RESULT(0,SS_NET,1)
  94. #define PNR_NO_DATA MAKE_PN_RESULT(0,SS_NET,2)
  95. #define PNR_STREAM_DONE MAKE_PN_RESULT(0,SS_NET,3)
  96. #define PNR_NET_SOCKET_INVALID MAKE_PN_RESULT(1,SS_NET,3)
  97. #define PNR_NET_CONNECT MAKE_PN_RESULT(1,SS_NET,4)
  98. #define PNR_BIND MAKE_PN_RESULT(1,SS_NET,5)
  99. #define PNR_SOCKET_CREATE MAKE_PN_RESULT(1,SS_NET,6)
  100. #define PNR_INVALID_HOST MAKE_PN_RESULT(1,SS_NET,7)
  101. #define PNR_NET_READ MAKE_PN_RESULT(1,SS_NET,8)
  102. #define PNR_NET_WRITE MAKE_PN_RESULT(1,SS_NET,9)
  103. #define PNR_NET_UDP MAKE_PN_RESULT(1,SS_NET,10)
  104. #define PNR_RETRY MAKE_PN_RESULT(1,SS_NET,11) /* XXX */
  105. #define PNR_SERVER_TIMEOUT MAKE_PN_RESULT(1,SS_NET,12)
  106. #define PNR_SERVER_DISCONNECTED MAKE_PN_RESULT(1,SS_NET,13)
  107. #define PNR_WOULD_BLOCK MAKE_PN_RESULT(1,SS_NET,14)
  108. #define PNR_GENERAL_NONET MAKE_PN_RESULT(1,SS_NET,15)
  109. #define PNR_BLOCK_CANCELED MAKE_PN_RESULT(1,SS_NET,16) /* XXX */
  110. #define PNR_MULTICAST_JOIN MAKE_PN_RESULT(1,SS_NET,17)
  111. #define PNR_GENERAL_MULTICAST MAKE_PN_RESULT(1,SS_NET,18)
  112. #define PNR_MULTICAST_UDP MAKE_PN_RESULT(1,SS_NET,19)
  113. #define PNR_AT_INTERRUPT                MAKE_PN_RESULT(1,SS_NET,20)
  114. #define PNR_MSG_TOOLARGE MAKE_PN_RESULT(1,SS_NET,21)
  115. #define PNR_NET_TCP MAKE_PN_RESULT(1,SS_NET,22)
  116. #define PNR_TRY_AUTOCONFIG MAKE_PN_RESULT(1,SS_NET,23)
  117. #define PNR_NOTENOUGH_BANDWIDTH MAKE_PN_RESULT(1,SS_NET,24)
  118. #define PNR_HTTP_CONNECT MAKE_PN_RESULT(1,SS_NET,25)
  119. #define PNR_PORT_IN_USE MAKE_PN_RESULT(1,SS_NET,26)
  120. #define PNR_LOADTEST_NOT_SUPPORTED MAKE_PN_RESULT(1,SS_NET,27)
  121. #define PNR_AT_END MAKE_PN_RESULT(0,SS_FIL,0)
  122. #define PNR_INVALID_FILE MAKE_PN_RESULT(1,SS_FIL,1)
  123. #define PNR_INVALID_PATH MAKE_PN_RESULT(1,SS_FIL,2)
  124. #define PNR_RECORD MAKE_PN_RESULT(1,SS_FIL,3)
  125. #define PNR_RECORD_WRITE MAKE_PN_RESULT(1,SS_FIL,4)
  126. #define PNR_TEMP_FILE MAKE_PN_RESULT(1,SS_FIL,5)
  127. #define PNR_ALREADY_OPEN                MAKE_PN_RESULT(1,SS_FIL,6)
  128. #define PNR_SEEK_PENDING                MAKE_PN_RESULT(1,SS_FIL,7)
  129. #define PNR_CANCELLED                   MAKE_PN_RESULT(1,SS_FIL,8)
  130. #define PNR_FILE_NOT_FOUND              MAKE_PN_RESULT(1,SS_FIL,9)
  131. #define PNR_WRITE_ERROR                 MAKE_PN_RESULT(1,SS_FIL,10)
  132. #define PNR_FILE_EXISTS                 MAKE_PN_RESULT(1,SS_FIL,11)
  133. #define PNR_FILE_NOT_OPEN MAKE_PN_RESULT(1,SS_FIL,12)
  134. #define PNR_ADVISE_PREFER_LINEAR MAKE_PN_RESULT(0,SS_FIL,13)
  135. #define PNR_PARSE_ERROR                 MAKE_PN_RESULT(1,SS_FIL,14)
  136. #define PNR_BAD_SERVER MAKE_PN_RESULT(1,SS_PRT,0)
  137. #define PNR_ADVANCED_SERVER MAKE_PN_RESULT(1,SS_PRT,1)
  138. #define PNR_OLD_SERVER MAKE_PN_RESULT(1,SS_PRT,2)
  139. #define PNR_REDIRECTION MAKE_PN_RESULT(0,SS_PRT,3) /* XXX */
  140. #define PNR_SERVER_ALERT MAKE_PN_RESULT(1,SS_PRT,4)
  141. #define PNR_PROXY MAKE_PN_RESULT(1,SS_PRT,5)
  142. #define PNR_PROXY_RESPONSE MAKE_PN_RESULT(1,SS_PRT,6)
  143. #define PNR_ADVANCED_PROXY MAKE_PN_RESULT(1,SS_PRT,7)
  144. #define PNR_OLD_PROXY MAKE_PN_RESULT(1,SS_PRT,8)
  145. #define PNR_INVALID_PROTOCOL MAKE_PN_RESULT(1,SS_PRT,9)
  146. #define PNR_INVALID_URL_OPTION MAKE_PN_RESULT(1,SS_PRT,10)
  147. #define PNR_INVALID_URL_HOST MAKE_PN_RESULT(1,SS_PRT,11)
  148. #define PNR_INVALID_URL_PATH MAKE_PN_RESULT(1,SS_PRT,12)
  149. #define PNR_HTTP_CONTENT_NOT_FOUND      MAKE_PN_RESULT(1,SS_PRT,13)
  150. #define PNR_NOT_AUTHORIZED              MAKE_PN_RESULT(1,SS_PRT,14)
  151. #define PNR_UNEXPECTED_MSG              MAKE_PN_RESULT(1,SS_PRT,15)
  152. #define PNR_BAD_TRANSPORT               MAKE_PN_RESULT(1,SS_PRT,16)
  153. #define PNR_NO_SESSION_ID               MAKE_PN_RESULT(1,SS_PRT,17)
  154. #define PNR_PROXY_DNR MAKE_PN_RESULT(1,SS_PRT,18)
  155. #define PNR_PROXY_NET_CONNECT MAKE_PN_RESULT(1,SS_PRT,19)
  156. #define PNR_AUDIO_DRIVER MAKE_PN_RESULT(1,SS_AUD,0)
  157. #define PNR_LATE_PACKET MAKE_PN_RESULT(1,SS_AUD,1)
  158. #define PNR_OVERLAPPED_PACKET MAKE_PN_RESULT(1,SS_AUD,2)
  159. #define PNR_OUTOFORDER_PACKET MAKE_PN_RESULT(1,SS_AUD,3)
  160. #define PNR_NONCONTIGUOUS_PACKET MAKE_PN_RESULT(1,SS_AUD,4)
  161. #define PNR_OPEN_NOT_PROCESSED MAKE_PN_RESULT(1,SS_INT,0)
  162. #define PNR_EXPIRED MAKE_PN_RESULT(1,SS_USR,0)
  163. #define PNR_INVALID_INTERLEAVER MAKE_PN_RESULT(1,SS_DPR,0)
  164. #define PNR_BAD_FORMAT MAKE_PN_RESULT(1,SS_DPR,1)
  165. #define PNR_CHUNK_MISSING MAKE_PN_RESULT(1,SS_DPR,2)
  166. #define PNR_INVALID_STREAM              MAKE_PN_RESULT(1,SS_DPR,3)
  167. #define PNR_DNR                         MAKE_PN_RESULT(1,SS_DPR,4)
  168. #define PNR_OPEN_DRIVER                 MAKE_PN_RESULT(1,SS_DPR,5)
  169. #define PNR_UPGRADE                     MAKE_PN_RESULT(1,SS_DPR,6)
  170. #define PNR_NOTIFICATION                MAKE_PN_RESULT(1,SS_DPR,7)
  171. #define PNR_NOT_NOTIFIED                MAKE_PN_RESULT(1,SS_DPR,8)
  172. #define PNR_STOPPED                     MAKE_PN_RESULT(1,SS_DPR,9)
  173. #define PNR_CLOSED                      MAKE_PN_RESULT(1,SS_DPR,10)
  174. #define PNR_INVALID_WAV_FILE            MAKE_PN_RESULT(1,SS_DPR,11)
  175. #define PNR_NO_SEEK                     MAKE_PN_RESULT(1,SS_DPR,12)
  176. #define PNR_DEC_INITED MAKE_PN_RESULT(1,SS_DEC,0)
  177. #define PNR_DEC_NOT_FOUND MAKE_PN_RESULT(1,SS_DEC,1)
  178. #define PNR_DEC_INVALID MAKE_PN_RESULT(1,SS_DEC,2)
  179. #define PNR_DEC_TYPE_MISMATCH MAKE_PN_RESULT(1,SS_DEC,3)
  180. #define PNR_DEC_INIT_FAILED MAKE_PN_RESULT(1,SS_DEC,4)
  181. #define PNR_DEC_NOT_INITED MAKE_PN_RESULT(1,SS_DEC,5)
  182. #define PNR_DEC_DECOMPRESS MAKE_PN_RESULT(1,SS_DEC,6)
  183. #define PNR_OBSOLETE_VERSION MAKE_PN_RESULT(1,SS_DEC,7)
  184. #define PNR_ENC_FILE_TOO_SMALL MAKE_PN_RESULT(1,SS_ENC,0)
  185. #define PNR_ENC_UNKNOWN_FILE MAKE_PN_RESULT(1,SS_ENC,1)
  186. #define PNR_ENC_BAD_CHANNELS MAKE_PN_RESULT(1,SS_ENC,2)
  187. #define PNR_ENC_BAD_SAMPSIZE MAKE_PN_RESULT(1,SS_ENC,3)
  188. #define PNR_ENC_BAD_SAMPRATE MAKE_PN_RESULT(1,SS_ENC,4)
  189. #define PNR_ENC_INVALID MAKE_PN_RESULT(1,SS_ENC,5)
  190. #define PNR_ENC_NO_OUTPUT_FILE MAKE_PN_RESULT(1,SS_ENC,6)
  191. #define PNR_ENC_NO_INPUT_FILE MAKE_PN_RESULT(1,SS_ENC,7)
  192. #define PNR_ENC_NO_OUTPUT_PERMISSIONS MAKE_PN_RESULT(1,SS_ENC,8)
  193. #define PNR_ENC_BAD_FILETYPE MAKE_PN_RESULT(1,SS_ENC,9)
  194. #define PNR_ENC_INVALID_VIDEO MAKE_PN_RESULT(1,SS_ENC,10)
  195. #define PNR_ENC_INVALID_AUDIO MAKE_PN_RESULT(1,SS_ENC,11)
  196. #define PNR_ENC_NO_VIDEO_CAPTURE MAKE_PN_RESULT(1,SS_ENC,12)
  197. #define PNR_ENC_INVALID_VIDEO_CAPTURE MAKE_PN_RESULT(1,SS_ENC,13)
  198. #define PNR_ENC_NO_AUDIO_CAPTURE MAKE_PN_RESULT(1,SS_ENC,14)
  199. #define PNR_ENC_INVALID_AUDIO_CAPTURE MAKE_PN_RESULT(1,SS_ENC,15)
  200. #define PNR_ENC_TOO_SLOW_FOR_LIVE MAKE_PN_RESULT(1,SS_ENC,16)
  201. #define PNR_ENC_ENGINE_NOT_INITIALIZED MAKE_PN_RESULT(1,SS_ENC,17)
  202. #define PNR_ENC_CODEC_NOT_FOUND MAKE_PN_RESULT(1,SS_ENC,18)
  203. #define PNR_ENC_CODEC_NOT_INITIALIZED MAKE_PN_RESULT(1,SS_ENC,19)
  204. #define PNR_ENC_INVALID_INPUT_DIMENSIONS MAKE_PN_RESULT(1,SS_ENC,20)
  205. #define PNR_ENC_MESSAGE_IGNORED MAKE_PN_RESULT(1,SS_ENC,21)
  206. #define PNR_ENC_NO_SETTINGS MAKE_PN_RESULT(1,SS_ENC,22)
  207. #define PNR_ENC_NO_OUTPUT_TYPES MAKE_PN_RESULT(1,SS_ENC,23)
  208. #define PNR_ENC_IMPROPER_STATE MAKE_PN_RESULT(1,SS_ENC,24)
  209. #define PNR_ENC_INVALID_SERVER MAKE_PN_RESULT(1,SS_ENC,25)
  210. #define PNR_ENC_INVALID_TEMP_PATH MAKE_PN_RESULT(1,SS_ENC,26)
  211. #define PNR_ENC_MERGE_FAIL MAKE_PN_RESULT(1,SS_ENC,27)
  212. #define PNR_BIN_DATA_NOT_FOUND MAKE_PN_RESULT(0,SS_ENC,28)    
  213. #define PNR_BIN_END_OF_DATA MAKE_PN_RESULT(0,SS_ENC,29)    
  214. #define PNR_BIN_DATA_PURGED MAKE_PN_RESULT(1,SS_ENC,30)
  215. #define PNR_BIN_FULL MAKE_PN_RESULT(1,SS_ENC,31)    
  216. #define PNR_BIN_OFFSET_PAST_END MAKE_PN_RESULT(1,SS_ENC,32)    
  217. #define PNR_ENC_NO_ENCODED_DATA MAKE_PN_RESULT(1,SS_ENC,33)
  218. #define PNR_ENC_INVALID_DLL MAKE_PN_RESULT(1,SS_ENC,34)
  219. #define PNR_NOT_INDEXABLE MAKE_PN_RESULT(1,SS_ENC,35)
  220. #define PNR_ENC_NO_BROWSER MAKE_PN_RESULT(1,SS_ENC,36)
  221. #define PNR_ENC_NO_FILE_TO_SERVER MAKE_PN_RESULT(1,SS_ENC,37)
  222. #define PNR_ENC_INSUFFICIENT_DISK_SPACE MAKE_PN_RESULT(1,SS_ENC,38)
  223. #define PNR_RMT_USAGE_ERROR MAKE_PN_RESULT(1,SS_RMT,1)
  224. #define PNR_RMT_INVALID_ENDTIME MAKE_PN_RESULT(1,SS_RMT,2)
  225. #define PNR_RMT_MISSING_INPUT_FILE MAKE_PN_RESULT(1,SS_RMT,3)
  226. #define PNR_RMT_MISSING_OUTPUT_FILE MAKE_PN_RESULT(1,SS_RMT,4)
  227. #define PNR_RMT_INPUT_EQUALS_OUTPUT_FILE MAKE_PN_RESULT(1,SS_RMT,5)
  228. #define PNR_RMT_UNSUPPORTED_AUDIO_VERSION MAKE_PN_RESULT(1,SS_RMT,6)
  229. #define PNR_RMT_DIFFERENT_AUDIO MAKE_PN_RESULT(1,SS_RMT,7)
  230. #define PNR_RMT_DIFFERENT_VIDEO MAKE_PN_RESULT(1,SS_RMT,8)
  231. #define PNR_RMT_PASTE_MISSING_STREAM MAKE_PN_RESULT(1,SS_RMT,9)
  232. #define PNR_RMT_END_OF_STREAM MAKE_PN_RESULT(1,SS_RMT,10)
  233. #define PNR_RMT_IMAGE_MAP_PARSE_ERROR MAKE_PN_RESULT(1,SS_RMT,11)
  234. #define PNR_RMT_INVALID_IMAGEMAP_FILE MAKE_PN_RESULT(1,SS_RMT,12)
  235. #define PNR_RMT_EVENT_PARSE_ERROR MAKE_PN_RESULT(1,SS_RMT,13)
  236. #define PNR_RMT_INVALID_EVENT_FILE MAKE_PN_RESULT(1,SS_RMT,14)
  237. #define PNR_RMT_INVALID_OUTPUT_FILE MAKE_PN_RESULT(1,SS_RMT,15)
  238. #define PNR_RMT_INVALID_DURATION MAKE_PN_RESULT(1,SS_RMT,16)
  239. #define PNR_RMT_NO_DUMP_FILES MAKE_PN_RESULT(1,SS_RMT,17)
  240. #define PNR_RMT_NO_EVENT_DUMP_FILE MAKE_PN_RESULT(1,SS_RMT,18)
  241. #define PNR_RMT_NO_IMAP_DUMP_FILE MAKE_PN_RESULT(1,SS_RMT,19)
  242. #define PNR_RMT_NO_DATA MAKE_PN_RESULT(1,SS_RMT,20)
  243. #define PNR_RMT_EMPTY_STREAM MAKE_PN_RESULT(1,SS_RMT,21)
  244. #define PNR_RMT_READ_ONLY_FILE MAKE_PN_RESULT(1,SS_RMT,22)
  245. #define PNR_RMT_PASTE_MISSING_AUDIO_STREAM MAKE_PN_RESULT(1,SS_RMT,23)
  246. #define PNR_RMT_PASTE_MISSING_VIDEO_STREAM MAKE_PN_RESULT(1,SS_RMT,24)
  247. #define PNR_PROP_NOT_FOUND MAKE_PN_RESULT(1,SS_REG,1)
  248. #define PNR_PROP_NOT_COMPOSITE MAKE_PN_RESULT(1,SS_REG,2)
  249. #define PNR_PROP_DUPLICATE MAKE_PN_RESULT(1,SS_REG,3)
  250. #define PNR_PROP_TYPE_MISMATCH MAKE_PN_RESULT(1,SS_REG,4)
  251. #define PNR_PROP_ACTIVE MAKE_PN_RESULT(1,SS_REG,5)
  252. #define PNR_PROP_INACTIVE MAKE_PN_RESULT(1,SS_REG,6)
  253. #define PNR_COULDNOTINITCORE MAKE_PN_RESULT(1,SS_MSC,1)
  254. #define PNR_PERFECTPLAY_NOT_SUPPORTED MAKE_PN_RESULT(1,SS_MSC,2)
  255. #define PNR_NO_LIVE_PERFECTPLAY MAKE_PN_RESULT(1,SS_MSC,3)
  256. #define PNR_PERFECTPLAY_NOT_ALLOWED MAKE_PN_RESULT(1,SS_MSC,4)
  257. #define PNR_NO_CODECS MAKE_PN_RESULT(1,SS_MSC,5)
  258. #define PNR_SLOW_MACHINE MAKE_PN_RESULT(1,SS_MSC,6)
  259. #define PNR_FORCE_PERFECTPLAY MAKE_PN_RESULT(1,SS_MSC,7)
  260. #define PNR_INVALID_HTTP_PROXY_HOST MAKE_PN_RESULT(1,SS_MSC,8)
  261. #define PNR_INVALID_METAFILE MAKE_PN_RESULT(1,SS_MSC,9)
  262. #define PNR_BROWSER_LAUNCH MAKE_PN_RESULT(1,SS_MSC,10)
  263. #define PNR_VIEW_SOURCE_NOCLIP MAKE_PN_RESULT(1,SS_MSC,11)
  264. #define PNR_VIEW_SOURCE_DISSABLED MAKE_PN_RESULT(1,SS_MSC,12)
  265. #define PNR_RESOURCE_NOT_CACHED MAKE_PN_RESULT(1,SS_RSC,1)
  266. #define PNR_RESOURCE_NOT_FOUND MAKE_PN_RESULT(1,SS_RSC,2)
  267. #define PNR_RESOURCE_CLOSE_FILE_FIRST MAKE_PN_RESULT(1,SS_RSC,3)
  268. #define PNR_RESOURCE_NODATA MAKE_PN_RESULT(1,SS_RSC,4)
  269. #define PNR_RESOURCE_BADFILE MAKE_PN_RESULT(1,SS_RSC,5)
  270. #define PNR_RESOURCE_PARTIALCOPY MAKE_PN_RESULT(1,SS_RSC,6)
  271. #define PNR_PPV_NO_USER MAKE_PN_RESULT(1,SS_PPV,0)
  272. #define PNR_PPV_GUID_READ_ONLY MAKE_PN_RESULT(1,SS_PPV,1)
  273. #define PNR_PPV_GUID_COLLISION MAKE_PN_RESULT(1,SS_PPV,2)
  274. #define PNR_REGISTER_GUID_EXISTS MAKE_PN_RESULT(1,SS_PPV,3)
  275. #define PNR_PPV_AUTHORIZATION_FAILED    MAKE_PN_RESULT(1,SS_PPV,4)
  276. #define PNR_PPV_OLD_PLAYER MAKE_PN_RESULT(1,SS_PPV,5)
  277. #define PNR_PPV_ACCOUNT_LOCKED MAKE_PN_RESULT(1,SS_PPV,6)
  278. // #define PNR_PPV_PROTOCOL_IGNORES MAKE_PN_RESULT(1,SS_PPV,7)
  279. #define PNR_PPV_DBACCESS_ERROR          MAKE_PN_RESULT(1,SS_PPV,8)
  280. #define PNR_PPV_USER_ALREADY_EXISTS     MAKE_PN_RESULT(1,SS_PPV,9)
  281. // auto-upgrade (RealUpdate) errors
  282. #define PNR_UPG_AUTH_FAILED MAKE_PN_RESULT(1,SS_UPG,0)
  283. #define PNR_UPG_CERT_AUTH_FAILED MAKE_PN_RESULT(1,SS_UPG,1)
  284. #define PNR_UPG_CERT_EXPIRED MAKE_PN_RESULT(1,SS_UPG,2)
  285. #define PNR_UPG_CERT_REVOKED MAKE_PN_RESULT(1,SS_UPG,3)
  286. #define PNR_UPG_RUP_BAD MAKE_PN_RESULT(1,SS_UPG,4)
  287. // auto-config errors
  288. #define PNR_AUTOCFG_SUCCESS MAKE_PN_RESULT(1,SS_CFG,0)
  289. #define PNR_AUTOCFG_FAILED MAKE_PN_RESULT(1,SS_CFG,1)
  290. #define PNR_AUTOCFG_ABORT MAKE_PN_RESULT(1,SS_CFG,2)
  291. #define PNR_FAILED PNR_FAIL
  292. #ifdef _WIN16
  293. /*typedef UINT MMRESULT;*/
  294. #else
  295. #ifdef _WIN32
  296. #define _HRESULT_TYPEDEF_(_sc) ((HRESULT)_sc)
  297. #ifdef _WINCE
  298. #undef E_NOTIMPL 
  299. #undef E_OUTOFMEMORY
  300. #undef E_INVALIDARG 
  301. #undef E_NOINTERFACE
  302. #undef E_POINTER    
  303. #undef E_HANDLE     
  304. #undef E_ABORT      
  305. #undef E_FAIL       
  306. #undef E_ACCESSDENIED
  307. #endif
  308. #define E_NOTIMPL                        _HRESULT_TYPEDEF_(0x80004001L)
  309. #define E_OUTOFMEMORY                    _HRESULT_TYPEDEF_(0x8007000EL)
  310. #define E_INVALIDARG                     _HRESULT_TYPEDEF_(0x80070057L)
  311. #define E_NOINTERFACE                    _HRESULT_TYPEDEF_(0x80004002L)
  312. #define E_POINTER                        _HRESULT_TYPEDEF_(0x80004003L)
  313. #define E_HANDLE                         _HRESULT_TYPEDEF_(0x80070006L)
  314. #define E_ABORT                          _HRESULT_TYPEDEF_(0x80004004L)
  315. #define E_FAIL                           _HRESULT_TYPEDEF_(0x80004005L)
  316. #define E_ACCESSDENIED                   _HRESULT_TYPEDEF_(0x80070005L)
  317. #else
  318. #define S_OK                    PNR_OK
  319. #define E_NOTIMPL               PNR_NOTIMPL
  320. #define E_INVALIDARG            PNR_INVALID_PARAMETER
  321. #define E_NOINTERFACE           PNR_NOINTERFACE
  322. #define E_POINTER               PNR_POINTER
  323. #define E_HANDLE                PNR_HANDLE
  324. #define E_ABORT                 PNR_ABORT
  325. #define E_FAIL                  PNR_FAIL
  326. #define E_ACCESSDENIES          PNR_ACCESSDENIED
  327. #endif /* _WIN32 */
  328. #endif /* _WIN16 */
  329. #define PN_STATUS_OK            PNR_OK
  330. #define PN_STATUS_FAILED        E_FAIL
  331. #endif /* _PNRESULT_H_ */