📄 networksetuptypes.h
字号:
short fHost; /* always 0*/};typedef struct IRTE11Entry IRTE11Entry;struct IRTE11Preferences { short fCount; IRTE11Entry fList[1];};typedef struct IRTE11Preferences IRTE11Preferences;struct ISDM11Preferences { short fCount; Str255 fDomainsList;};typedef struct ISDM11Preferences ISDM11Preferences;#pragma options align=reset/* Modem */enum { /* connection */ kModemResourceCount = FOUR_CHAR_CODE('cnam'), /* No. of resources*/ kModemSelectedConfigType = FOUR_CHAR_CODE('ccfg'), /* id of current selected CCL configuration*/ kModemConfigTypeModem = FOUR_CHAR_CODE('ccl '), /* Type for Modem configuration resource*/ kModemConfigTypeLocks = FOUR_CHAR_CODE('lkmd'), /* Types for lock resources*/ kModemConfigAdminPswdResID = FOUR_CHAR_CODE('mdpw'), /* Password*/ /* transport options */ kModemAppPrefsType = FOUR_CHAR_CODE('mapt')};struct RAConfigModem { UInt32 version; Boolean useModemScript; char pad00; /* this structure is NOT packed!*/ FSSpec modemScript; Boolean modemSpeakerOn; Boolean modemPulseDial; UInt32 modemDialToneMode; SInt8 lowerLayerName[36];};typedef struct RAConfigModem RAConfigModem;struct LockStates { UInt32 version; UInt32 port; UInt32 script; UInt32 speaker; UInt32 dialing;};typedef struct LockStates LockStates;struct ModemAppPrefs { UInt32 version; Point windowPos; SInt32 userMode;};typedef struct ModemAppPrefs ModemAppPrefs;/* Remote Access */enum { /* connection */ kRAConfigNameType = FOUR_CHAR_CODE('cnam'), kRAConfigTypeARAP = FOUR_CHAR_CODE('arap'), kRAConfigTypeAddress = FOUR_CHAR_CODE('cadr'), kRAConfigTypeChat = FOUR_CHAR_CODE('ccha'), kRAConfigTypeDialing = FOUR_CHAR_CODE('cdia'), kRAConfigTypeExtAddress = FOUR_CHAR_CODE('cead'), kRAConfigTypeClientLocks = FOUR_CHAR_CODE('clks'), kRAConfigTypeClientMisc = FOUR_CHAR_CODE('cmsc'), kRAConfigTypeConnect = FOUR_CHAR_CODE('conn'), kRAConfigTypeUser = FOUR_CHAR_CODE('cusr'), kRAConfigTypeDialAssist = FOUR_CHAR_CODE('dass'), kRAConfigTypeIPCP = FOUR_CHAR_CODE('ipcp'), kRAConfigTypeLCP = FOUR_CHAR_CODE('lcp '), /* trailing space is important! */ kRAConfigTypeLogOptions = FOUR_CHAR_CODE('logo'), kRAConfigTypePassword = FOUR_CHAR_CODE('pass'), kRAConfigTypePort = FOUR_CHAR_CODE('port'), kRAConfigTypeServerLocks = FOUR_CHAR_CODE('slks'), kRAConfigTypeServer = FOUR_CHAR_CODE('srvr'), kRAConfigTypeUserMode = FOUR_CHAR_CODE('usmd'), kRAConfigTypeX25 = FOUR_CHAR_CODE('x25 '), /* trailing space is important! */ /* transport options */ kRemoteAppPrefsType = FOUR_CHAR_CODE('capt'), kRemoteSelectedConfigType = FOUR_CHAR_CODE('ccfg')};/******************************************************************************** RALogOptions** This structure is appended to RAConnect records in the * RAConnect::additional list.** NOTE** All RAConnect::additional structures MUST have the same fields up to* the "additional" field. See RAX25Info.********************************************************************************/struct RALogOptions { UInt32 version; UInt32 fType; /* kRAConnectAdditionalLogOptions*/ void * additional; UInt32 logLevel; /* values defined above.*/ UInt32 reserved[4]; /* for later use.*/};typedef struct RALogOptions RALogOptions;/******************************************************************************** New structures for dialing mode, phone numbers, and configuration stats.* * ********************************************************************************/enum { kRAMaxAddressSize = (255 + 1)};struct RAAddress { struct RAAddress * next; UInt8 address[256];};typedef struct RAAddress RAAddress;/******************************************************************************** RADialing** This structure is appended to RAConnect records in the * RAConnect::additional list.** NOTE** All RAConnect::additional structures MUST have the same fields up to* the "additional" field. See RAX25Info.********************************************************************************/struct RADialing { UInt32 version; UInt32 fType; /* kRAConnectAdditionalDialing*/ void * additional; UInt32 dialMode; /* values defined above.*/ SInt32 redialTries; UInt32 redialDelay; /* in seconds.*/ RAAddress * addresses;};typedef struct RADialing RADialing;/******************************************************************************** RAScript** This is appended to RAConnect records in the "additional" list.* It is currently only used for passing in a modem script to override* the default script. Connect scripts have their own field in RAConnect.** NOTE** All RAConnect::additional structures MUST have the same fields up to* the "additional" field. See RAX25Info and RADialing.********************************************************************************/struct RAScript { UInt32 version; UInt32 fType; /* kRAConnectAdditionalScript*/ void * additional; UInt32 scriptType; UInt32 scriptLength; UInt8 * scriptData;};typedef struct RAScript RAScript;/******************************************************************************** Miscellaneous limits* The size limits for strings include a 1 byte for the string length or* a terminating NULL character.********************************************************************************/enum { kRAMaxPasswordLength = 255, kRAMaxPasswordSize = (255 + 1), kRAMaxUserNameLength = 255, kRAMaxUserNameSize = (255 + 1), kRAMaxAddressLength = 255, /* kRAMaxAddressSize = (255 + 1),*/ kRAMaxServerNameLength = 32, kRAMaxServerNameSize = (32 + 1), kRAMaxMessageLength = 255, kRAMaxMessageSize = (255 + 1), kRAMaxX25ClosedUserGroupLength = 4, kRAInfiniteSeconds = (long)0xFFFFFFFF, kRAMinReminderMinutes = 1, kRAChatScriptFileCreator = FOUR_CHAR_CODE('ttxt'), kRAChatScriptFileType = FOUR_CHAR_CODE('TEXT'), kRAMaxChatScriptLength = 0x8000};/******************************************************************************** X.25 connection information, added to RAConnect's additional info list.** NOTE** All RAConnect::additional structures MUST have the same fields up to* the "additional" field. See RAScript & RADialing.********************************************************************************/struct RAX25Info { UInt32 version; UInt32 fType; /* kRAConnectAdditionalX25*/ void * additional; /* Ptr to additional connect info*/ FSSpec script; /* PAD's CCL script*/ UInt8 address[256]; /* address of server*/ UInt8 userName[256]; /* network user ID*/ UInt8 closedUserGroup[5]; /* closed user group*/ Boolean reverseCharge; /* request reverse charging*/};typedef struct RAX25Info RAX25Info;/******************************************************************************** RADisconnect** Use this structure to terminate Remote Access connections.********************************************************************************/struct RADisconnect { UInt32 whenSeconds; /* Number of seconds until disconnect*/ UInt32 showStatus; /* Show disconnect status window*/};typedef struct RADisconnect RADisconnect;/******************************************************************************** RAIsRemote** Use this structure to find out if an AppleTalk address is on the * remote side of the current ARA link. The "isRemote" field is set to* "true" if the address is remote. ********************************************************************************/struct RAIsRemote { UInt32 net; /* AppleTalk network number*/ UInt32 node; /* AppleTalk node number*/ UInt32 isRemote; /* returned.*/};typedef struct RAIsRemote RAIsRemote;/******************************************************************************** RAConnect** Use this structure to initiate Remote Access connections.********************************************************************************/struct RAConnect { UInt32 version; UInt32 fType; /* RAConnectType defined above.*/ UInt32 isGuest; /* (boolean) True for guest login*/ UInt32 canInteract; /* (boolean) True if dialogs can be displayed*/ UInt32 showStatus; /* (boolean) Display (dis)connection status dialogs?*/ UInt32 passwordSaved; /* (boolean) "Save Password" checked in doc.*/ UInt32 flashConnectedIcon; /* (boolean) Flash icon in menu bar*/ UInt32 issueConnectedReminders; /* (boolean) Use Notification Manager reminders*/ SInt32 reminderMinutes; /* How long between each reminder?*/ UInt32 connectManually; /* (boolean) True if we are connecting manually*/ UInt32 allowModemDataCompression; /* (boolean) currently, only for kSerialProtoPPP*/ UInt32 chatMode; /* Flags defined above*/ UInt32 serialProtocolMode; /* Flags defined above*/ UInt8 * password; UInt8 * userName; UInt32 addressLength; /* Length of phone number or other address*/ UInt8 * address; /* Phone number or address data*/ Str63 chatScriptName; /* Name of imported chat script (informational only)*/ UInt32 chatScriptLength; /* Length of Chat script*/ UInt8 * chatScript; /* Chat script data*/ void * additional; /* Ptr to additional connect info,*/ /* such as RAX25Info*/ UInt32 useSecurityModule; /* (boolean) use line-level security module ?*/ OSType securitySignature; /* signature of security module file*/ UInt32 securityDataLength; /* 0..kSecurityMaxConfigData*/ UInt8 * securityData; /* Ptr to data of size securityDataLength*/};typedef struct RAConnect RAConnect;/******************************************************************************** RAConnectInfo** If requestCode = kRAGetConnectInfo, "connectInfo" returns a pointer to a* new RAConnect block that describes the current connection.** If requestCode = kRADisposeConnectInfo, the memory pointed to by* "connectInfo" is released for reuse. "connectInfo" must point to a valid* RAConnect structure previously returned by kRAGetConnectInfo.********************************************************************************/struct RAConnectInfo { RAConnect * connectInfo; /* Returned or disposed, depending on requestCode*/};typedef struct RAConnectInfo RAConnectInfo;/******************************************************************************** RAStatus** Use this structure to get the status of Remote Access connections.********************************************************************************/enum { kRAStatusIdle = 1, kRAStatusConnecting = 2, kRAStatusConnected = 3, kRAStatusDisconnecting = 4};struct RAStatus { UInt32 status; /* values defined above*/ Boolean answerEnabled; char pad00; /* This structure is NOT packed*/ UInt32 secondsConnected; UInt32 secondsRemaining; UInt8 userName[256]; /* Pascal format*/ UInt8 serverName[33]; /* Pascal format*/ char pad01; /* This structure is NOT packed*/ UInt32 messageIndex; UInt8 message[256]; /* Pascal format*/ UInt32 serialProtocolMode; /* Flags defined above.*/ UInt8 baudMessage[256]; /* Pascal format*/ Boolean isServer; char pad02; /* This structure is NOT packed*/ UInt32 bytesIn; UInt32 bytesOut; UInt32 linkSpeed; UInt32 localIPAddress; UInt32 remoteIPAddress;};typedef struct RAStatus RAStatus;/******************************************************************************** RAUserMessage** Use this structure when converting result codes into user messages.********************************************************************************/struct RAUserMessage { UInt32 version; SInt32 messageID; UInt8 userMessage[256]; UInt8 userDiagnostic[256];};typedef struct RAUserMessage RAUserMessage;/******************************************************************************** RANotifier** Use this structure to install a procedure to receive asynchronous * Remote Access notifications.********************************************************************************/typedef UInt32 RAEventCode;typedef CALLBACK_API_C( void , RANotifyProcPtr )(void *contextPtr, RAEventCode code, OSStatus result, void *cookie);struct RANotifier { RANotifyProcPtr procPtr; void * contextPtr;};typedef struct RANotifier RANotifier;/******************************************************************************** RARequest** All Remote Access API calls must pass a pointer to an RARequest structure.********************************************************************************/struct RARequest { SInt8 reserved1[16]; /* Do not use. */ OSErr result; /* <--*/ SInt8 reserved2[8]; /* Do not use.*/ SInt16 requestCode; /* -->*/ SInt16 portId; /* <-->*/ union { RANotifier Notifier; RAConnect Connect; RADisconnect Disconnect; RAStatus Status; RAIsRemote IsRemote; RAConnectInfo ConnectInfo; } fType;};typedef struct RARequest RARequest;struct RAConfigCAPT { UInt32 fWord1; Point fWindowPosition; UInt32 fWord3; UInt32 fUserLevel; UInt32 fSetupVisible;};typedef struct RAConfigCAPT RAConfigCAPT;#if PRAGMA_STRUCT_ALIGN #pragma options align=reset#elif PRAGMA_STRUCT_PACKPUSH #pragma pack(pop)#elif PRAGMA_STRUCT_PACK #pragma pack()#endif#ifdef PRAGMA_IMPORT_OFF#pragma import off#elif PRAGMA_IMPORT#pragma import reset#endif#ifdef __cplusplus}#endif#endif /* __NETWORKSETUPTYPES__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -