📄 pnresult.pas
字号:
unit PnResult;
interface
uses
PnTypes;
//***************************************************************************
//
// $Id: pnresult.h,v 1.99 2000/05/17 18:27:28 atin Exp $
//
// Copyright (C) 1995-1999 RealNetworks, Inc. All rights reserved.
//
// http://www.real.com/devzone
//
// This program contains proprietary
// information of Progressive Networks, Inc, and is licensed
// subject to restrictions on use and distribution.
//
// This file contains the PN_RESULT type and it's associated result codes
//
type
PN_RESULT = System.HRESULT; // LONG32;
{$EXTERNALSYM PN_RESULT}
{$IFNDEF _WIN32}
type
HRESULT = PN_RESULT;
{$EXTERNALSYM HRESULT}
const
NOERROR = 0;
{$EXTERNALSYM NOERROR}
FACILITY_ITF = 4;
{$EXTERNALSYM FACILITY_ITF}
function MAKE_HRESULT(sev, fac, code: Integer): HRESULT;
{$EXTERNALSYM MAKE_HRESULT}
function SUCCEEDED(Status: HRESULT): BOOL;
{$EXTERNALSYM SUCCEEDED}
function FAILED(Status: HRESULT): BOOL;
{$EXTERNALSYM FAILED}
{$ELSE}
{$IFNDEF _HRESULT_DEFINED}
HRESULT = LONG32;
{$EXTERNALSYM HRESULT}
{$ENDIF _HRESULT_DEFINED}
{$ENDIF _WIN32}
function MAKE_PN_RESULT(sev, fac, code: Integer): HRESULT;
{$EXTERNALSYM MAKE_PN_RESULT}
const
SS_GLO = 0; // General errors
{$EXTERNALSYM SS_GLO}
SS_NET = 1; // Networking errors
{$EXTERNALSYM SS_NET}
SS_FIL = 2; // File errors
{$EXTERNALSYM SS_FIL}
SS_PRT = 3; // Protocol Error
{$EXTERNALSYM SS_PRT}
SS_AUD = 4; // Audio error
{$EXTERNALSYM SS_AUD}
SS_INT = 5; // General internal errors
{$EXTERNALSYM SS_INT}
SS_USR = 6; // The user is broken.
{$EXTERNALSYM SS_USR}
SS_MSC = 7; // Miscellaneous
{$EXTERNALSYM SS_MSC}
SS_DEC = 8; // Decoder errors
{$EXTERNALSYM SS_DEC}
SS_ENC = 9; // Encoder errors
{$EXTERNALSYM SS_ENC}
SS_REG = 10; // Registry (not Windows registry ;) errors
{$EXTERNALSYM SS_REG}
SS_PPV = 11; // Pay Per View errors
{$EXTERNALSYM SS_PPV}
SS_RSC = 12; // Errors for PNXRES
{$EXTERNALSYM SS_RSC}
SS_UPG = 13; // Auto-upgrade & Certificate Errors
{$EXTERNALSYM SS_UPG}
SS_PLY = 14; // RealPlayer/Plus specific errors (USE ONLY IN /rpmisc/pub/rpresult.h)
{$EXTERNALSYM SS_PLY}
SS_RMT = 15; // RMTools Errors
{$EXTERNALSYM SS_RMT}
SS_CFG = 16; // AutoConfig Errors
{$EXTERNALSYM SS_CFG}
SS_RPX = 17; // RealPix-related Errors
{$EXTERNALSYM SS_RPX}
SS_XML = 18; // XML-related Errors
{$EXTERNALSYM SS_XML}
SS_DPR = 63; // Deprecated errors
{$EXTERNALSYM SS_DPR}
PNR_NOTIMPL = HRESULT((1 shl 31) or (0 shl 16) or $400);
{$EXTERNALSYM PNR_NOTIMPL}
PNR_OUTOFMEMORY = HRESULT((1 shl 31) or (7 shl 16) or $000e);
{$EXTERNALSYM PNR_OUTOFMEMORY}
PNR_INVALID_PARAMETER = HRESULT((1 shl 31) or (7 shl 16) or $0057);
{$EXTERNALSYM PNR_INVALID_PARAMETER}
PNR_NOINTERFACE = HRESULT((1 shl 31) or (0 shl 16) or $4002);
{$EXTERNALSYM PNR_NOINTERFACE}
PNR_POINTER = HRESULT((1 shl 31) or (0 shl 16) or $4003);
{$EXTERNALSYM PNR_POINTER}
PNR_HANDLE = HRESULT((1 shl 31) or (7 shl 16) or $0006);
{$EXTERNALSYM PNR_HANDLE}
PNR_ABORT = HRESULT((1 shl 31) or (0 shl 16) or $4004);
{$EXTERNALSYM PNR_ABORT}
PNR_FAIL = HRESULT((1 shl 31) or (0 shl 16) or $4005);
{$EXTERNALSYM PNR_FAIL}
PNR_ACCESSDENIED = HRESULT((1 shl 31) or (7 shl 16) or $0005);
{$EXTERNALSYM PNR_ACCESSDENIED}
PNR_IGNORE = HRESULT((1 shl 31) or (0 shl 16) or $0006);
{$EXTERNALSYM PNR_IGNORE}
PNR_OK = HRESULT((0 shl 31) or (0 shl 16) or 0);
{$EXTERNALSYM PNR_OK}
PNR_INVALID_OPERATION = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 4);
{$EXTERNALSYM PNR_INVALID_OPERATION}
PNR_INVALID_VERSION = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 5);
{$EXTERNALSYM PNR_INVALID_VERSION}
PNR_INVALID_REVISION = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 6);
{$EXTERNALSYM PNR_INVALID_REVISION}
PNR_NOT_INITIALIZED = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 7);
{$EXTERNALSYM PNR_NOT_INITIALIZED}
PNR_DOC_MISSING = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 8);
{$EXTERNALSYM PNR_DOC_MISSING}
PNR_UNEXPECTED = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 9);
{$EXTERNALSYM PNR_UNEXPECTED}
PNR_INCOMPLETE = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 12);
{$EXTERNALSYM PNR_INCOMPLETE}
PNR_BUFFERTOOSMALL = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 13);
{$EXTERNALSYM PNR_BUFFERTOOSMALL}
PNR_UNSUPPORTED_VIDEO = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 14);
{$EXTERNALSYM PNR_UNSUPPORTED_VIDEO}
PNR_UNSUPPORTED_AUDIO = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 15);
{$EXTERNALSYM PNR_UNSUPPORTED_AUDIO}
PNR_INVALID_BANDWIDTH = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 16);
{$EXTERNALSYM PNR_INVALID_BANDWIDTH}
PNR_NO_RENDERER = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 17);
{$EXTERNALSYM PNR_NO_RENDERER}
PNR_NO_FILEFORMAT = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 17);
{$EXTERNALSYM PNR_NO_FILEFORMAT}
PNR_MISSING_COMPONENTS = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 17);
{$EXTERNALSYM PNR_MISSING_COMPONENTS}
PNR_ELEMENT_NOT_FOUND = HRESULT((0 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 18);
{$EXTERNALSYM PNR_ELEMENT_NOT_FOUND}
PNR_NOCLASS = HRESULT((0 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 19);
{$EXTERNALSYM PNR_NOCLASS}
PNR_CLASS_NOAGGREGATION = HRESULT((0 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 20);
{$EXTERNALSYM PNR_CLASS_NOAGGREGATION}
PNR_NOT_LICENSED = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 21);
{$EXTERNALSYM PNR_NOT_LICENSED}
PNR_NO_FILESYSTEM = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 22);
{$EXTERNALSYM PNR_NO_FILESYSTEM}
PNR_REQUEST_UPGRADE = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 23);
{$EXTERNALSYM PNR_REQUEST_UPGRADE}
PNR_AWAITING_LICENSE = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 24);
{$EXTERNALSYM PNR_AWAITING_LICENSE}
PNR_BUFFERING = HRESULT((0 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 0);
{$EXTERNALSYM PNR_BUFFERING}
PNR_PAUSED = HRESULT((0 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 1);
{$EXTERNALSYM PNR_PAUSED}
PNR_NO_DATA = HRESULT((0 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 2);
{$EXTERNALSYM PNR_NO_DATA}
PNR_STREAM_DONE = HRESULT((0 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 3);
{$EXTERNALSYM PNR_STREAM_DONE}
PNR_NET_SOCKET_INVALID = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 3);
{$EXTERNALSYM PNR_NET_SOCKET_INVALID}
PNR_NET_CONNECT = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 4);
{$EXTERNALSYM PNR_NET_CONNECT}
PNR_BIND = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 5);
{$EXTERNALSYM PNR_BIND}
PNR_SOCKET_CREATE = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 6);
{$EXTERNALSYM PNR_SOCKET_CREATE}
PNR_INVALID_HOST = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 7);
{$EXTERNALSYM PNR_INVALID_HOST}
PNR_NET_READ = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 8);
{$EXTERNALSYM PNR_NET_READ}
PNR_NET_WRITE = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 9);
{$EXTERNALSYM PNR_NET_WRITE}
PNR_NET_UDP = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 10);
{$EXTERNALSYM PNR_NET_UDP}
PNR_RETRY = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 11);
{$EXTERNALSYM PNR_RETRY}
PNR_SERVER_TIMEOUT = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 12);
{$EXTERNALSYM PNR_SERVER_TIMEOUT}
PNR_SERVER_DISCONNECTED = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 13);
{$EXTERNALSYM PNR_SERVER_DISCONNECTED}
PNR_WOULD_BLOCK = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 14);
{$EXTERNALSYM PNR_WOULD_BLOCK}
PNR_GENERAL_NONET = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 15);
{$EXTERNALSYM PNR_GENERAL_NONET}
PNR_BLOCK_CANCELED = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 16);
{$EXTERNALSYM PNR_BLOCK_CANCELED}
PNR_MULTICAST_JOIN = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 17);
{$EXTERNALSYM PNR_MULTICAST_JOIN}
PNR_GENERAL_MULTICAST = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 18);
{$EXTERNALSYM PNR_GENERAL_MULTICAST}
PNR_MULTICAST_UDP = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 19);
{$EXTERNALSYM PNR_MULTICAST_UDP}
PNR_AT_INTERRUPT = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 20);
{$EXTERNALSYM PNR_AT_INTERRUPT}
PNR_MSG_TOOLARGE = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 21);
{$EXTERNALSYM PNR_MSG_TOOLARGE}
PNR_NET_TCP = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 22);
{$EXTERNALSYM PNR_NET_TCP}
PNR_TRY_AUTOCONFIG = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 23);
{$EXTERNALSYM PNR_TRY_AUTOCONFIG}
PNR_NOTENOUGH_BANDWIDTH = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 24);
{$EXTERNALSYM PNR_NOTENOUGH_BANDWIDTH}
PNR_HTTP_CONNECT = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 25);
{$EXTERNALSYM PNR_HTTP_CONNECT}
PNR_PORT_IN_USE = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 26);
{$EXTERNALSYM PNR_PORT_IN_USE}
PNR_LOADTEST_NOT_SUPPORTED = HRESULT((1 shl 31) or (FACILITY_ITF shl 16) or (FACILITY_ITF shl 6) or 27);
{$EXTERNALSYM PNR_LOADTEST_NOT_SUPPORTED}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -