OCE.h
上传用户:xjjlds
上传日期:2015-12-05
资源大小:22823k
文件大小:70k
- /*
- File: OCE.h
-
- Contains: Apple Open Collaboration Environment (AOCE) Interfaces.
-
- Version: Technology: AOCE Toolbox 1.02
- Release: QuickTime 6.0.2
-
- Copyright: (c) 1994-2001 by Apple Computer, Inc., all rights reserved.
-
- Bugs?: For bug reports, consult the following page on
- the World Wide Web:
-
- http://developer.apple.com/bugreporter/
-
- */
- #ifndef __OCE__
- #define __OCE__
- #ifndef REZ
- #ifndef __MACTYPES__
- #include "MacTypes.h"
- #endif
- #ifndef __ALIASES__
- #include "Aliases.h"
- #endif
- #ifndef __APPLEEVENTS__
- #include "AppleEvents.h"
- #endif
- #if PRAGMA_ONCE
- #pragma once
- #endif
- #ifdef __cplusplus
- extern "C" {
- #endif
- #if PRAGMA_IMPORT
- #pragma import on
- #endif
- #if PRAGMA_STRUCT_ALIGN
- #pragma options align=mac68k
- #elif PRAGMA_STRUCT_PACKPUSH
- #pragma pack(push, 2)
- #elif PRAGMA_STRUCT_PACK
- #pragma pack(2)
- #endif
- /* All utility routines defined here are callable at interrupt level. */
- typedef unsigned short OCERecordTypeIndex;
- typedef unsigned short OCEAttributeTypeIndex;
- /* For anyone who absolutely needs a define of the body of the standard record or
- attribute type, use these below. CAUTION! All the types below are assumed to be
- in character set 'smRoman'. If you try to compare these to some RString or
- AttributeType variable, you must take the character set code into account. Future
- standard types may be defined using character sets other than 'smRoman'. */
- /* All these standard definitions begin with the Apple symbol (not shown here).
- NOTE: To access these, you must call OCEGetIndRecordType or OCEGetIndAttributeType
- with the proper index. These routines return pointers to the standard type.
- This was done so that code fragments (INITs, CDEVs, CSAMs, etc). which cannot
- use global data can also use these. */
- /* Indices for the standard definitions for certain record types (OCERecordTypeIndex): */
- enum {
- kUserRecTypeNum = 1, /* "User" */
- kGroupRecTypeNum = 2, /* "Group" */
- kMnMRecTypeNum = 3, /* "AppleMail(tm) M&M" */
- kMnMForwarderRecTypeNum = 4, /* "AppleMail(tm) Fwdr" */
- kNetworkSpecRecTypeNum = 5, /* "NetworkSpec" */
- kADAPServerRecTypeNum = 6, /* "ADAP Server" */
- kADAPDNodeRecTypeNum = 7, /* "ADAP DNode" */
- kADAPDNodeRepRecTypeNum = 8, /* "ADAP DNode Rep" */
- kServerSetupRecTypeNum = 9, /* "Server Setup" */
- kDirectoryRecTypeNum = 10, /* "Directory" */
- kDNodeRecTypeNum = 11, /* "DNode" */
- kSetupRecTypeNum = 12, /* "Setup" */
- kMSAMRecTypeNum = 13, /* "MSAM" */
- kDSAMRecTypeNum = 14, /* "DSAM" */
- kAttributeValueRecTypeNum = 15, /* "Attribute Value" */
- kBusinessCardRecTypeNum = 16, /* "Business Card" */
- kMailServiceRecTypeNum = 17, /* "Mail Service" */
- kCombinedRecTypeNum = 18, /* "Combined" */
- kOtherServiceRecTypeNum = 19, /* "Other Service" */
- kAFPServiceRecTypeNum = 20, /* "Other Service afps" */
- kFirstOCERecTypeNum = kUserRecTypeNum, /* first standard OCE record type */
- kLastOCERecTypeNum = kAFPServiceRecTypeNum, /* last standard OCE record type */
- kNumOCERecTypes = (kLastOCERecTypeNum - kFirstOCERecTypeNum + 1)
- };
- /* Indices for the standard definitions for certain attribute types (OCEAttributeTypeIndex): */
- enum {
- kMemberAttrTypeNum = 1001, /* "Member" */
- kAdminsAttrTypeNum = 1002, /* "Administrators" */
- kMailSlotsAttrTypeNum = 1003, /* "mailslots" */
- kPrefMailAttrTypeNum = 1004, /* "pref mailslot" */
- kAddressAttrTypeNum = 1005, /* "Address" */
- kPictureAttrTypeNum = 1006, /* "Picture" */
- kAuthKeyAttrTypeNum = 1007, /* "auth key" */
- kTelephoneAttrTypeNum = 1008, /* "Telephone" */
- kNBPNameAttrTypeNum = 1009, /* "NBP Name" */
- kQMappingAttrTypeNum = 1010, /* "ForwarderQMap" */
- kDialupSlotAttrTypeNum = 1011, /* "DialupSlotInfo" */
- kHomeNetAttrTypeNum = 1012, /* "Home Internet" */
- kCoResAttrTypeNum = 1013, /* "Co-resident M&M" */
- kFwdrLocalAttrTypeNum = 1014, /* "FwdrLocalRecord" */
- kConnectAttrTypeNum = 1015, /* "Connected To" */
- kForeignAttrTypeNum = 1016, /* "Foreign RLIs" */
- kOwnersAttrTypeNum = 1017, /* "Owners" */
- kReadListAttrTypeNum = 1018, /* "ReadList" */
- kWriteListAttrTypeNum = 1019, /* "WriteList" */
- kDescriptorAttrTypeNum = 1020, /* "Descriptor" */
- kCertificateAttrTypeNum = 1021, /* "Certificate" */
- kMsgQsAttrTypeNum = 1022, /* "MessageQs" */
- kPrefMsgQAttrTypeNum = 1023, /* "PrefMessageQ" */
- kMasterPFAttrTypeNum = 1024, /* "MasterPF" */
- kMasterNetSpecAttrTypeNum = 1025, /* "MasterNetSpec" */
- kServersOfAttrTypeNum = 1026, /* "Servers Of" */
- kParentCIDAttrTypeNum = 1027, /* "Parent CID" */
- kNetworkSpecAttrTypeNum = 1028, /* "NetworkSpec" */
- kLocationAttrTypeNum = 1029, /* "Location" */
- kTimeSvrTypeAttrTypeNum = 1030, /* "TimeServer Type" */
- kUpdateTimerAttrTypeNum = 1031, /* "Update Timer" */
- kShadowsOfAttrTypeNum = 1032, /* "Shadows Of" */
- kShadowServerAttrTypeNum = 1033, /* "Shadow Server" */
- kTBSetupAttrTypeNum = 1034, /* "TB Setup" */
- kMailSetupAttrTypeNum = 1035, /* "Mail Setup" */
- kSlotIDAttrTypeNum = 1036, /* "SlotID" */
- kGatewayFileIDAttrTypeNum = 1037, /* "Gateway FileID" */
- kMailServiceAttrTypeNum = 1038, /* "Mail Service" */
- kStdSlotInfoAttrTypeNum = 1039, /* "Std Slot Info" */
- kAssoDirectoryAttrTypeNum = 1040, /* "Asso. Directory" */
- kDirectoryAttrTypeNum = 1041, /* "Directory" */
- kDirectoriesAttrTypeNum = 1042, /* "Directories" */
- kSFlagsAttrTypeNum = 1043, /* "SFlags" */
- kLocalNameAttrTypeNum = 1044, /* "Local Name" */
- kLocalKeyAttrTypeNum = 1045, /* "Local Key" */
- kDirUserRIDAttrTypeNum = 1046, /* "Dir User RID" */
- kDirUserKeyAttrTypeNum = 1047, /* "Dir User Key" */
- kDirNativeNameAttrTypeNum = 1048, /* "Dir Native Name" */
- kCommentAttrTypeNum = 1049, /* "Comment" */
- kRealNameAttrTypeNum = 1050, /* "Real Name" */
- kPrivateDataAttrTypeNum = 1051, /* "Private Data" */
- kDirTypeAttrTypeNum = 1052, /* "Directory Type" */
- kDSAMFileAliasAttrTypeNum = 1053, /* "DSAM File Alias" */
- kCanAddressToAttrTypeNum = 1054, /* "Can Address To" */
- kDiscriminatorAttrTypeNum = 1055, /* "Discriminator" */
- kAliasAttrTypeNum = 1056, /* "Alias" */
- kParentMSAMAttrTypeNum = 1057, /* "Parent MSAM" */
- kParentDSAMAttrTypeNum = 1058, /* "Parent DSAM" */
- kSlotAttrTypeNum = 1059, /* "Slot" */
- kAssoMailServiceAttrTypeNum = 1060, /* "Asso. Mail Service" */
- kFakeAttrTypeNum = 1061, /* "Fake" */
- kInheritSysAdminAttrTypeNum = 1062, /* "Inherit SysAdministrators" */
- kPreferredPDAttrTypeNum = 1063, /* "Preferred PD" */
- kLastLoginAttrTypeNum = 1064, /* "Last Login" */
- kMailerAOMStateAttrTypeNum = 1065, /* "Mailer AOM State" */
- kMailerSendOptionsAttrTypeNum = 1066, /* "Mailer Send Options" */
- kJoinedAttrTypeNum = 1067, /* "Joined" */
- kUnconfiguredAttrTypeNum = 1068, /* "Unconfigured" */
- kVersionAttrTypeNum = 1069, /* "Version" */
- kLocationNamesAttrTypeNum = 1070, /* "Location Names" */
- kActiveAttrTypeNum = 1071, /* "Active" */
- kDeleteRequestedAttrTypeNum = 1072, /* "Delete Requested" */
- kGatewayTypeAttrTypeNum = 1073, /* "Gateway Type" */
- kFirstOCEAttrTypeNum = kMemberAttrTypeNum, /* first standard OCE attr type */
- kLastOCEAttrTypeNum = kGatewayTypeAttrTypeNum, /* last standard OCE attr type */
- kNumOCEAttrTypes = (kLastOCEAttrTypeNum - kFirstOCEAttrTypeNum + 1)
- };
- #endif /* REZ */
- /* Standard definitions for certain record types: */
- #define kUserRecTypeBody "aoce User"
- #define kGroupRecTypeBody "aoce Group"
- #define kMnMRecTypeBody "aoce AppleMail