📄 oomisc.pas
字号:
RASEO_RequirePAP = $00040000; {!!.06}
RASEO_RequireSPAP = $00080000; {!!.06}
RASEO_Custom = $00100000; {!!.06}
RASEO_PreviewPhoneNumber = $00200000; {!!.06}
RASEO_SharedPhoneNumbers = $00800000; {!!.06}
RASEO_PreviewUserPw = $01000000; {!!.06}
RASEO_PreviewDomain = $02000000; {!!.06}
RASEO_ShowDialingProgress = $04000000; {!!.06}
RASEO_RequireCHAP = $08000000; {!!.06}
RASEO_RequireMsCHAP = $10000000; {!!.06}
RASEO_RequireMsCHAP2 = $20000000; {!!.06}
RASEO_RequireW95MSCHAP = $40000000; {!!.06}
RASEO_CustomScript = $80000000; {!!.06}
{RASENTRY 'dwfNetProtocols' bit flags} {!!.06}
RASNP_NetBEUI = $00000001; {!!.06}
RASNP_Ipx = $00000002; {!!.06}
RASNP_Ip = $00000004; {!!.06}
{RASENTRY 'dwFramingProtocols' bit flags} {!!.06}
RASFP_Ppp = $00000001; {!!.06}
RASFP_Slip = $00000002; {!!.06}
RASFP_Ras = $00000004; {!!.06}
{RASENTRY 'szDeviceType' default strings} {!!.06}
RASDT_Modem = 'modem'; {!!.06}
RASDT_Isdn = 'isdn'; {!!.06}
RASDT_X25 = 'x25'; {!!.06}
RASDT_Vpn = 'vpn'; {!!.06}
RASDT_Pad = 'pad'; {!!.06}
RASDT_Generic = 'GENERIC'; {!!.06}
RASDT_Serial = 'SERIAL'; {!!.06}
RASDT_FrameRelay = 'FRAMERELAY'; {!!.06}
RASDT_Atm = 'ATM'; {!!.06}
RASDT_Sonet = 'SONET'; {!!.06}
RASDT_SW56 = 'SW56'; {!!.06}
RASDT_Irda = 'IRDA'; {!!.06}
RASDT_Parallel = 'PARALLEL'; {!!.06}
type
PRasStatistics = ^TRasStatistics; {!!.06}
TRasStatistics = record {!!.06}
dwSize : DWORD; {!!.06}
dwBytesXmited : DWORD; {!!.06}
dwBytesRcved : DWORD; {!!.06}
dwFramesXmited : DWORD; {!!.06}
dwFramesRcved : DWORD; {!!.06}
dwCrcErr : DWORD; {!!.06}
dwTimeoutErr : DWORD; {!!.06}
dwAlignmentErr : DWORD; {!!.06}
dwHardwareOverrunErr : DWORD; {!!.06}
dwFramingErr : DWORD; {!!.06}
dwBufferOverrunErr : DWORD; {!!.06}
dwCompressionRatioIn : DWORD; {!!.06}
dwCompressionRatioOut : DWORD; {!!.06}
dwBps : DWORD; {!!.06}
dwConnectDuration : DWORD; {!!.06}
end; {!!.06}
{$ENDIF} {!!.06}
const
{Compile-time configurations}
MaxComHandles = 50; {Max comm ports open at once}
DispatchBufferSize = 8192; {Size of each port's dispatch buffer}
MaxMessageLen = 80; {All error and status strings less than 80}
{For skipping line parameter changes}
DontChangeBaud = 0;
DontChangeParity = SpaceParity + 1;
DontChangeDatabits = 9;
DontChangeStopbits = TwoStopbits + 1;
{Modem status trigger options}
msCTSDelta = $0010;
msDSRDelta = $0020;
msRingDelta = $0004;
msDCDDelta = $0080;
{Line status trigger options}
lsOverrun = $0001;
lsParity = $0002;
lsFraming = $0004;
lsBreak = $0008;
{Line and driver errors}
leNoError = 0; {No error, ordinal value matches ecOK}
leBuffer = 1; {Buffer overrun in COMM.DRV}
leOverrun = 2; {UART receiver overrun}
leParity = 3; {UART receiver parity error}
leFraming = 4; {UART receiver framing error}
leCTSTO = 5; {Transmit timeout waiting for CTS}
leDSRTO = 6; {Transmit timeout waiting for DSR}
leDCDTO = 7; {Transmit timeout waiting for RLSD}
leTxFull = 8; {Transmit queue is full}
leBreak = 9; {Break condition received}
{Status trigger subtypes}
stNotActive = 0; {not active}
stModem = 1; {Trigger on modem status change}
stLine = 2; {Trigger on line status change}
stOutBuffFree = 3; {Trigger on outbuff free level}
stOutBuffUsed = 4; {Trigger on outbuff used level}
stOutSent = 5; {Trigger on any PutXxx call}
{Next file method}
nfNone = 0; {No next file method specified}
nfMask = 1; {Use built-in next file mask method}
nfList = 2; {Use built-in next file list method}
{Action to take if incoming file exists}
wfcWriteNone = 0; {No option set yet}
wfcWriteFail = 1; {Fail the open attempt}
wfcWriteRename = 2; {Rename the incoming file}
wfcWriteAnyway = 3; {Overwrite the existing file}
wfcWriteResume = 4; {Resume an interrupted receive}
{Ascii CR/LF translation options}
atNone = 0; {No CR/LF translations}
atStrip = 1; {Strip CRs or LFs}
atAddCRBefore = 2; {Add CR before each LF}
atAddLFAfter = 3; {Add LF after each CR}
atEOFMarker : char = ^Z; {Add constant for standard EOF }
{Protocol status start/end flags}
apFirstCall = $01; {Indicates the first call to status}
apLastCall = $02; {Indicates the last call to status}
{For specifying log file calls}
lfReceiveStart = 0; {Receive starting}
lfReceiveOk = 1; {File received ok}
lfReceiveFail = 2; {File receive failed}
lfReceiveSkip = 3; {File was rejected by receiver}
lfTransmitStart = 4; {Transmit starting}
lfTransmitOk = 5; {File was transmitted ok}
lfTransmitFail = 6; {File transmit failed}
lfTransmitSkip = 7; {File was skipped, rejected by receiver}
type
{Convenient types used by protocols}
TNameCharArray = array[0..fsFileName ] of Char;
TExtCharArray = array[0..fsExtension] of Char;
TPathCharArray = array[0..fsPathName ] of Char;
TDirCharArray = array[0..fsDirectory] of Char;
TChar20Array = array[0..20] of Char;
TCharArray = array[0..255] of Char;
{For generic buffer typecasts}
PByteBuffer = ^TByteBuffer;
TByteBuffer = array[1..65535] of Byte;
{Port characteristic constants}
TDatabits = 5..DontChangeDatabits;
TStopbits = 1..DontChangeStopbits;
{NotifyProc type, same as a window procedure}
TApdNotifyProc = procedure(Msg, wParam : Cardinal;
lParam : Longint);
TApdNotifyEvent = procedure(Msg, wParam : Cardinal;
lParam : Longint) of object;
const
{Avoid requiring WIN31}
ev_CTSS = $0400; {CTS state}
ev_DSRS = $0800; {DSR state}
ev_RLSDS = $1000; {RLSD state}
ev_RingTe = $2000; {Ring trailing edge indicator}
const
{MSRShadow register from COMM.DRV}
MsrShadowOfs = 35; {Offset of MSRShadow from EventWord}
const
{Modem status bit masks}
DeltaCTSMask = $01; {CTS changed since last read}
DeltaDSRMask = $02; {DSR changed since last read}
DeltaRIMask = $04; {RI changed since last read}
DeltaDCDMask = $08; {DCD changed since last read}
CTSMask = $10; {Clear to send}
DSRMask = $20; {Data set ready}
RIMask = $40; {Ring indicator}
DCDMask = $80; {Data carrier detect}
const
{Message base}
apw_First = $7E00; {Sets base for all APW messages}
const
{Custom message types}
apw_TriggerAvail = apw_First+1; {Trigger for any data avail}
apw_TriggerData = apw_First+2; {Trigger data}
apw_TriggerTimer = apw_First+3; {Trigger timer}
apw_TriggerStatus = apw_First+4; {Status change (modem, line, buffer)}
apw_FromYmodem = apw_First+5; {Tells Xmodem it was called from Ymodem}
apw_PortOpen = apw_First+8; {Apro, tell users port open}
apw_PortClose = apw_First+9; {Apro, tell users port closed}
apw_ClosePending = apw_First+10; {Apro, tell ourself that the port was closed}
const
{Protocol message types}
apw_ProtocolCancel = apw_First+20; {To protocol - chk for protcl abort}
apw_ProtocolStatus = apw_First+21; {From protocol - update status display}
apw_ProtocolLog = apw_First+22; {From protocol - LogFile message}
apw_ProtocolNextFile = apw_First+23; {From protocol - return next file}
apw_ProtocolAcceptFile = apw_First+24; {From protocol - accept file}
apw_ProtocolFinish = apw_First+25; {From protocol - protocol is finished}
apw_ProtocolResume = apw_First+26; {From protocol - resume request}
apw_ProtocolError = apw_First+27; {From protocol - error during protocol}
apw_ProtocolAbort = apw_First+28; {To protocol - abort the transfer}
const
{Modem message types}
apw_AutoAnswer = apw_First+40; {To modem, enter AutoAnswer}
apw_CancelCall = apw_First+41; {To modem, cancel the call}
apw_StartDial = apw_First+42; {To modem, start the process}
{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}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -