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