📄 oomisc.pas
字号:
{deprecated modem message types, note that some conflict with new messages}
apw_ModemOk = apw_First+40; {From modem - got OK response}
apw_ModemConnect = apw_First+41; {From modem - got CONNECT response}
apw_ModemBusy = apw_First+42; {From modem - got BUSY response}
apw_ModemVoice = apw_First+43; {From modem - got VOICE response}
apw_ModemNoCarrier = apw_First+44; {From modem - got NO CARRIER response}
apw_ModemNoDialTone = apw_First+45; {From modem - got NO DIALTONE response}
apw_ModemError = apw_First+46; {From modem - got ERROR response}
apw_GotLineSpeed = apw_First+47; {From modem - got connect speed}
apw_GotErrCorrection = apw_First+48; {From modem - got EC response}
apw_GotDataCompression = apw_First+49; {From modem - got compression response}
apw_CmdTimeout = apw_First+50; {From modem - command timed out}
apw_DialTimeout = apw_First+51; {From modem - dial timed out}
apw_AnswerTimeout = apw_First+52; {From modem - answer timed out}
apw_DialCount = apw_First+53; {From modem - dial still in progress}
apw_AnswerCount = apw_First+54; {From modem - answer still in progress}
apw_ModemRing = apw_First+55; {From modem - phone rang}
apw_ModemIsConnected = apw_First+56; {From modem - connection completed}
apw_ConnectFailed = apw_First+57; {From modem - connection failed}
apw_CommandProcessed = apw_First+58; {From modem - finished command}
const
{Terminal message types}
apw_TermStart = apw_First+60; {To terminal - start}
apw_TermStop = apw_First+61; {To terminal - stop}
apw_TermSetCom = apw_First+62; {To terminal - set com handle}
apw_TermRelCom = apw_First+63; {To terminal - release com handle}
apw_TermSetEmuPtr = apw_First+64; {To terminal - set emulator pointer}
apw_TermSetEmuProc = apw_First+65; {To terminal - set emulator proc}
apw_TermClear = apw_First+66; {To terminal - clear window}
apw_TermBuffer = apw_First+67; {To terminal - alloc new buffers}
apw_TermColors = apw_First+68; {To terminal - set new colors}
apw_TermToggleScroll = apw_First+69; {To terminal - toggle scrollback}
apw_TermCapture = apw_First+70; {To terminal - set capture mode}
apw_TermStuff = apw_First+71; {To terminal - stuff data}
apw_TermPaint = apw_First+72; {To terminal - update screen}
apw_TermSetWndProc = apw_First+73; {To terminal - set window proc}
apw_TermColorsH = apw_First+74; {To terminal - set highlight colors}
apw_TermSave = apw_First+75; {To terminal - save/restore}
apw_TermColorMap = apw_First+76; {To terminal - get/set color map}
apw_TermForceSize = apw_First+77; {To terminal - force new size}
apw_TermFontSize = apw_First+78; {To terminal - get font size}
const
apw_TermStatus = apw_First+80; {From terminal - show status}
apw_TermBPlusStart = apw_First+81; {From terminal - B+ is starting}
apw_TermError = apw_First+82; {From terminal - error}
apw_CursorPosReport = apw_First+83; {From terminal - Cursor Pos Report}
const
apw_FaxCvtStatus = apw_First+90; {From fax converter - show status}
apw_FaxUnpStatus = apw_First+91; {From fax unpacker - show status}
apw_FaxOutput = apw_First+92; {From fax unpacker - output line}
const
apw_ViewSetFile = apw_First+100; {To fax viewer - change file name}
apw_ViewSetFG = apw_First+101; {To fax viewer - set foreground color}
apw_ViewSetBG = apw_First+102; {To fax viewer - set background color}
apw_ViewSetScale = apw_First+103; {To fax viewer - set scale factors}
apw_ViewSetScroll = apw_First+104; {To fax viewer - set scroll increments}
apw_ViewSelectAll = apw_First+105; {To fax viewer - select entire image}
apw_ViewSelect = apw_First+106; {To fax viewer - select image rect}
apw_ViewCopy = apw_First+107; {To fax viewer - copy data to cboard}
apw_ViewSetWndProc = apw_First+108; {To fax viewer - set window procedure}
apw_ViewSetWhitespace = apw_First+109; {To fax viewer - set whitespace comp}
apw_ViewGetBitmap = apw_First+110; {To fax viewer - get memory bmp}
apw_ViewGetNumPages = apw_First+111; {To fax viewer - get num pages}
apw_ViewStartUpdate = apw_First+112; {To fax viewer - start scale update}
apw_ViewEndUpdate = apw_First+113; {To fax viewer - end scale upate}
apw_ViewGotoPage = apw_First+114; {To fax viewer - go to a page}
apw_ViewGetCurPage = apw_First+115; {To fax viewer - get current page #}
apw_ViewSetDesignMode = apw_First+116; {To fax viewer - indicate in design}
apw_ViewSetRotation = apw_First+117; {To fax viewer - set rotation}
apw_ViewSetAutoScale = apw_First+118; {To fax viewer - auto scaling}
apw_ViewNotifyPage = apw_First+119; {To fax viewer - notify of page chg}
apw_ViewGetPageDim = apw_First+120; {To fax viewer - get pg dimensions}
apw_ViewSetLoadWholeFax= apw_First+121; {To fax viewer - set load whole fax}
apw_ViewSetBusyCursor = apw_First+122; {To fax viewer - set cursor for busy}
apw_ViewerError = apw_First+123; {Fax viewer error report}
apw_ViewGetPageFlags = apw_First+124; {To fax viewer - get pg flags}
apw_ViewGetFileName = apw_First+125; {To fax viewer - get file name}
const
apw_TermBlinkTimeChange = apw_First+130; {set new blink time}
apw_TermPersistentMarkChange = apw_First+131; {set persistent blocks}
apw_TermSetKeyEmuPtr = apw_First+132; {set Key Emulator pointer }
apw_TermSetKeyEmuProc = apw_First+133; {set Key Emulator proc }
apw_TermSetHalfDuplex = apw_First+134; {set Duplex mode}
apw_TermGetBuffPtr = apw_First+135; {get a pointer to term buffer}
apw_TermGetClientLine = apw_First+136; {get the first client line in buffer}
apw_TermWaitForPort = apw_First+137; {wait for the port to open}{!!.03}
const
apw_PrintDriverJobCreated = apw_First+140; {printer driver created fax job}
apw_BeginDoc = apw_First+141; {printer driver starts printing}
apw_EndDoc = apw_First+142; {printer driver has finished printing}
apw_AddPrim = apw_First+143; {internal FaxSrvx sample message}
apw_EndPage = apw_First+144; {printer driver EndOfPage/idShell}
const
apw_FaxCancel = apw_First+160; {To fax - cancel the session}
apw_FaxNextfile = apw_First+161; {From fax - return next fax to send}
apw_FaxStatus = apw_First+162; {From fax - show the fax status}
apw_FaxLog = apw_First+163; {From fax - log the fax start/stop}
apw_FaxName = apw_First+164; {From fax - name the incoming fax}
apw_FaxAccept = apw_First+165; {From fax - accept this fax?}
apw_FaxError = apw_First+166; {From fax - session had error}
apw_FaxFinish = apw_First+167; {From fax - session finished}
const
apw_TapiWaveMessage = apw_First+180; {Tapi wave event message}
apw_TapiEventMessage = apw_First+181; {Tapi general event message}
apw_VoIPEventMessage = apw_First+182; {AdVoIP general event message}
apw_VoIPNotifyMessage = apw_First+183; {AdVoIP internal notification message}
const
apw_StateDeactivate = apw_First+190; {State deactivation message }
apw_StateChange = apw_First+191; {from State to StateMachine }
const
apw_SapiTrain = apw_First+192; {Sapi training requested}
apw_SapiPhoneCallBack = apw_First+193; {Sapi AskFor phrase return}
apw_SapiInfoPhrase = apw_First+194; {Sapi TAPI connection status}
const
apw_PgrStatusEvent = apw_First+200; {Pager status event}
const
{Window class names}
DispatcherClassName = 'awDispatch';
ProtocolClassName = 'awProtocol';
TerminalClassName = 'awTerminal';
MessageHandlerClassName = 'awMsgHandler';
FaxViewerClassName = 'awViewer';
FaxViewerClassNameDesign = 'dcViewer';
TerminalClassNameDesign = 'dcTerminal';
FaxHandlerClassName = 'awFaxHandler';
const
{Error groups}
egDos = -0; {DOS, DOS critical and file I/O}
egGeneral = -1; {General errors}
egOpenComm = -2; {OpenComm errors}
egSerialIO = -3; {Errors during serial I/O processing}
egModem = -4; {Errors during modem processing}
egTrigger = -5; {Error setting up triggers}
egProtocol = -6; {Errors that apply to one or more protocols}
egINI = -7; {INI database errors}
egFax = -8; {FAX errors}
egAdWinsock = 9; {APro specific Winsock errors}
egWinsock = 10; {Winsock errors}
egWinsockEx = 11; {Additional Winsock errors}
egTapi = -13; {TAPI errors}
const
{ Below are all error codes used by APRO -- resource IDs are Abs(ErrorCode) }
{ The corresponding strings can be found in APW.STR. If you are adding }
{ strings, it's best to go there first to 'stake a claim' on an appropriate }
{ range of IDs -- since constants for some status strings are found in the }
{ applicable component's unit instead of here... }
{No error}
ecOK = 0; {Okay}
const
{egDOS}
ecFileNotFound = -2; {File not found}
ecPathNotFound = -3; {Path not found}
ecTooManyFiles = -4; {Too many open files}
ecAccessDenied = -5; {File access denied}
ecInvalidHandle = -6; {Invalid file handle}
ecOutOfMemory = -8; {Insufficient memory}
ecInvalidDrive = -15; {Invalid drive}
ecNoMoreFiles = -18; {No more files}
ecDiskRead = -100; {Attempt to read beyond end of file}
ecDiskFull = -101; {Disk is full}
ecNotAssigned = -102; {File not Assign-ed}
ecNotOpen = -103; {File not open}
ecNotOpenInput = -104; {File not open for input}
ecNotOpenOutput = -105; {File not open for output}
ecWriteProtected = -150; {Disk is write-protected}
ecUnknownUnit = -151; {Unknown disk unit}
ecDriveNotReady = -152; {Drive is not ready}
ecUnknownCommand = -153; {Unknown command}
ecCrcError = -154; {Data error}
ecBadStructLen = -155; {Bad request structure length}
ecSeekError = -156; {Seek error}
ecUnknownMedia = -157; {Unknown media type}
ecSectorNotFound = -158; {Disk sector not found}
ecOutOfPaper = -159; {Printer is out of paper}
ecDeviceWrite = -160; {Device write error}
ecDeviceRead = -161; {Device read error}
ecHardwareFailure = -162; {General failure}
const
{egGeneral}
ecBadHandle = -1001; {Bad handle passed to com function}
ecBadArgument = -1002; {Bad argument passed to function}
ecGotQuitMsg = -1003; {Yielding routine got WM_QUIT message}
ecBufferTooBig = -1004; {Terminal buffer size too big}
ecPortNotAssigned = -1005; {ComPort component not assigned}
ecInternal = -1006; {Internal INIDB errors}
ecModemNotAssigned = -1007; {Modem component not assigned}
ecPhonebookNotAssigned = -1008; {Phonebook component not assgnd}
ecCannotUseWithWinSock = -1009; {Component not compatible with WinSock}
const
{egOpenComm}
ecBadId = -2001; {ie_BadId - bad or unsupported ID}
ecBaudRate = -2002; {ie_Baudrate - unsupported baud rate}
ecByteSize = -2003; {ie_Bytesize - invalid byte size}
ecDefault = -2004; {ie_Default - error in default parameters}
ecHardware = -2005; {ie_Hardware - hardware not present}
ecMemory = -2006; {ie_Memory - unable to allocate queues}
ecCommNotOpen = -2007; {ie_NOpen - device not open}
ecAlreadyOpen = -2008; {ie_Open - device already open}
ecNoHandles = -2009; {No more handles, can't open port}
ecNoTimers = -2010; {No timers available}
ecNoPortSelected = -2011; {No port selected (attempt to open com0)}
ecNotOpenedByTapi = -2012; {Comport was not opened by Tapi}
const
{egSerialIO}
ecNullApi = -3001; {No device layer specified}
ecNotSupported = -3002; {Function not supported by driver}
ecRegisterHandlerFailed = -3003; {EnableCommNotification failed}
ecPutBlockFail = -3004; {Failed to put entire block}
ecGetBlockFail = -3005; {Failed to get entire block}
ecOutputBufferTooSmall = -3006; {Output buffer too small for block}
ecBufferIsEmpty = -3007; {Buffer is empty}
ecTracingNotEnabled = -3008; {Tracing not enabled}
ecLoggingNotEnabled = -3009; {Logging not enabled}
ecBaseAddressNotSet = -3010; {Base addr not found, RS485 mode}
const
{Modem/Pager}
ecModemNotStarted = -4001; {StartModem has not been called}
ecModemBusy = -4002; {Modem is busy elsewhere}
ecModemNotDialing = -4003; {Modem is not currently dialing}
ecNotDialing = -4004; {TModemDialer is not dialing}
ecAlreadyDialing = -4005; {TModemdialer is already dialing}
ecModemNotResponding = -4006; {No response from modem}
ecModemRejectedCommand = -4007; {Bad command sent to modem}
ecModemStatusMismatch = -4008; {Wrong modem status requested}
ecDeviceNotSelected = -4009; { Um, the modem wan't selected }
ecModemDetectedBusy = -4010; { Modem detected busy signal }
ecModemNoDialtone = -4011; { No dialtone detected }
ecModemNoCarrier = -4012; { No carrier from modem }
ecModemNoAnswer = -4013; { Modem returned No Answer response }
{ Pager }
ecInitFail = -4014; { Modem initialization failure }
ecLoginFail = -4015; { Login Failure }
ecMinorSrvErr = -4016; { SNPP - Minor Server Error }
ecFatalSrvErr = -4017; { SNPP - Fatal Server Error }
const
{LibModem}
ecModemNotFound = -4020; { Modem not found in modemcap }
ecInvalidFile = -4021; { a modemcap file is invalid }
const {RAS connection status codes}
csOpenPort = 4500;
csPortOpened = 4501;
csConnectDevice = 4502;
csDeviceConnected = 4503;
csAllDevicesConnected = 4504;
csAuthenticate = 4505;
csAuthNotify = 4506;
csAuthRetry = 4507;
csAuthCallback = 4508;
csAuthChangePassword = 4509;
csAuthProject = 4510;
csAuthLinkSpeed = 4511;
csAuthAck = 4512;
csReAuthenticate = 4513;
csAuthenticated = 4514;
csPrepareForCallback = 4515;
csWaitForModemReset = 4516;
csWaitForCallback = 4517;
csProjected = 4518;
csStartAuthentication = 4519;
csCallbackComplete = 4520;
csLogonNetwork = 4521;
csSubEntryConnected = 4522;
csSubEntryDisconnected = 4523;
csRasInteractive = 4550;
csRasRetryAuthentication = 4551;
csRasCallbackSetByCaller = 4552;
csRasPasswordExpired = 4553;
csRasDeviceConnected = 4599;
csRasBaseEnd = csSubEntryDisconnected;
csRasPaused = $1000;
csInteractive = csRasPaused;
csRetryAuthentication = csRasPaused + 1;
csCallbackSetByCaller = csRasPaused + 2;
csPasswordExpired = csRasPaused + 3;
csRasPausedEnd = csRasPaused + 3;
csRasConnected = $2000;
csRasDisconnected = csRasConnected + 1;
{ Protocols }
{ If strings are added -- apStatusMsg needs to be changed in AWABSPCL.PAS }
const
psOK = 4700; {Protocol is ok}
psProtocolHandshake = 4701; {Protocol handshaking in progress}
psInvalidDate = 4702; {Bad date/time stamp received and ignored}
psFileRejected = 4703; {Incoming file was rejected}
psFileRenamed = 4704; {Incoming file was renamed}
psSkipFile = 4705; {Incoming file was skipped}
psFileDoesntExist = 4706; {Incoming file doesn't exist locally, skipped}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -