OCE.h
上传用户:xjjlds
上传日期:2015-12-05
资源大小:22823k
文件大小:70k
源码类别:

多媒体编程

开发平台:

Visual C++

  1. /*
  2.      File:       OCE.h
  3.  
  4.      Contains:   Apple Open Collaboration Environment (AOCE) Interfaces.
  5.  
  6.      Version:    Technology: AOCE Toolbox 1.02
  7.                  Release:    QuickTime 6.0.2
  8.  
  9.      Copyright:  (c) 1994-2001 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:      For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __OCE__
  18. #define __OCE__
  19. #ifndef REZ
  20. #ifndef __MACTYPES__
  21. #include "MacTypes.h"
  22. #endif
  23. #ifndef __ALIASES__
  24. #include "Aliases.h"
  25. #endif
  26. #ifndef __APPLEEVENTS__
  27. #include "AppleEvents.h"
  28. #endif
  29. #if PRAGMA_ONCE
  30. #pragma once
  31. #endif
  32. #ifdef __cplusplus
  33. extern "C" {
  34. #endif
  35. #if PRAGMA_IMPORT
  36. #pragma import on
  37. #endif
  38. #if PRAGMA_STRUCT_ALIGN
  39.     #pragma options align=mac68k
  40. #elif PRAGMA_STRUCT_PACKPUSH
  41.     #pragma pack(push, 2)
  42. #elif PRAGMA_STRUCT_PACK
  43.     #pragma pack(2)
  44. #endif
  45. /* All utility routines defined here are callable at interrupt level. */
  46. typedef unsigned short                  OCERecordTypeIndex;
  47. typedef unsigned short                  OCEAttributeTypeIndex;
  48. /* For anyone who absolutely needs a define of the body of the standard record or
  49. attribute type, use these below.  CAUTION!  All the types below are assumed to be
  50. in character set 'smRoman'.  If you try to compare these to some RString or
  51. AttributeType variable, you must take the character set code into account.  Future
  52. standard types may be defined using character sets other than 'smRoman'. */
  53. /* All these standard definitions begin with the Apple symbol (not shown here).
  54. NOTE:  To access these, you must call OCEGetIndRecordType or OCEGetIndAttributeType
  55. with the proper index.  These routines return pointers to the standard type.
  56. This was done so that code fragments (INITs, CDEVs, CSAMs, etc). which cannot
  57. use global data can also use these. */
  58. /* Indices for the standard definitions for certain record types (OCERecordTypeIndex): */
  59. enum {
  60.     kUserRecTypeNum             = 1,                            /* "User" */
  61.     kGroupRecTypeNum            = 2,                            /* "Group" */
  62.     kMnMRecTypeNum              = 3,                            /* "AppleMail(tm) M&M" */
  63.     kMnMForwarderRecTypeNum     = 4,                            /* "AppleMail(tm) Fwdr" */
  64.     kNetworkSpecRecTypeNum      = 5,                            /* "NetworkSpec" */
  65.     kADAPServerRecTypeNum       = 6,                            /* "ADAP Server" */
  66.     kADAPDNodeRecTypeNum        = 7,                            /* "ADAP DNode" */
  67.     kADAPDNodeRepRecTypeNum     = 8,                            /* "ADAP DNode Rep" */
  68.     kServerSetupRecTypeNum      = 9,                            /* "Server Setup" */
  69.     kDirectoryRecTypeNum        = 10,                           /* "Directory" */
  70.     kDNodeRecTypeNum            = 11,                           /* "DNode" */
  71.     kSetupRecTypeNum            = 12,                           /* "Setup" */
  72.     kMSAMRecTypeNum             = 13,                           /* "MSAM" */
  73.     kDSAMRecTypeNum             = 14,                           /* "DSAM" */
  74.     kAttributeValueRecTypeNum   = 15,                           /* "Attribute Value" */
  75.     kBusinessCardRecTypeNum     = 16,                           /* "Business Card" */
  76.     kMailServiceRecTypeNum      = 17,                           /* "Mail Service" */
  77.     kCombinedRecTypeNum         = 18,                           /* "Combined" */
  78.     kOtherServiceRecTypeNum     = 19,                           /* "Other Service" */
  79.     kAFPServiceRecTypeNum       = 20,                           /* "Other Service afps" */
  80.     kFirstOCERecTypeNum         = kUserRecTypeNum,              /* first standard OCE record type */
  81.     kLastOCERecTypeNum          = kAFPServiceRecTypeNum,        /* last standard OCE record type */
  82.     kNumOCERecTypes             = (kLastOCERecTypeNum - kFirstOCERecTypeNum + 1)
  83. };
  84. /* Indices for the standard definitions for certain attribute types (OCEAttributeTypeIndex): */
  85. enum {
  86.     kMemberAttrTypeNum          = 1001,                         /* "Member" */
  87.     kAdminsAttrTypeNum          = 1002,                         /* "Administrators" */
  88.     kMailSlotsAttrTypeNum       = 1003,                         /* "mailslots" */
  89.     kPrefMailAttrTypeNum        = 1004,                         /* "pref mailslot" */
  90.     kAddressAttrTypeNum         = 1005,                         /* "Address" */
  91.     kPictureAttrTypeNum         = 1006,                         /* "Picture" */
  92.     kAuthKeyAttrTypeNum         = 1007,                         /* "auth key" */
  93.     kTelephoneAttrTypeNum       = 1008,                         /* "Telephone" */
  94.     kNBPNameAttrTypeNum         = 1009,                         /* "NBP Name" */
  95.     kQMappingAttrTypeNum        = 1010,                         /* "ForwarderQMap" */
  96.     kDialupSlotAttrTypeNum      = 1011,                         /* "DialupSlotInfo" */
  97.     kHomeNetAttrTypeNum         = 1012,                         /* "Home Internet" */
  98.     kCoResAttrTypeNum           = 1013,                         /* "Co-resident M&M" */
  99.     kFwdrLocalAttrTypeNum       = 1014,                         /* "FwdrLocalRecord" */
  100.     kConnectAttrTypeNum         = 1015,                         /* "Connected To" */
  101.     kForeignAttrTypeNum         = 1016,                         /* "Foreign RLIs" */
  102.     kOwnersAttrTypeNum          = 1017,                         /* "Owners" */
  103.     kReadListAttrTypeNum        = 1018,                         /* "ReadList" */
  104.     kWriteListAttrTypeNum       = 1019,                         /* "WriteList" */
  105.     kDescriptorAttrTypeNum      = 1020,                         /* "Descriptor" */
  106.     kCertificateAttrTypeNum     = 1021,                         /* "Certificate" */
  107.     kMsgQsAttrTypeNum           = 1022,                         /* "MessageQs" */
  108.     kPrefMsgQAttrTypeNum        = 1023,                         /* "PrefMessageQ" */
  109.     kMasterPFAttrTypeNum        = 1024,                         /* "MasterPF" */
  110.     kMasterNetSpecAttrTypeNum   = 1025,                         /* "MasterNetSpec" */
  111.     kServersOfAttrTypeNum       = 1026,                         /* "Servers Of" */
  112.     kParentCIDAttrTypeNum       = 1027,                         /* "Parent CID" */
  113.     kNetworkSpecAttrTypeNum     = 1028,                         /* "NetworkSpec" */
  114.     kLocationAttrTypeNum        = 1029,                         /* "Location" */
  115.     kTimeSvrTypeAttrTypeNum     = 1030,                         /* "TimeServer Type" */
  116.     kUpdateTimerAttrTypeNum     = 1031,                         /* "Update Timer" */
  117.     kShadowsOfAttrTypeNum       = 1032,                         /* "Shadows Of" */
  118.     kShadowServerAttrTypeNum    = 1033,                         /* "Shadow Server" */
  119.     kTBSetupAttrTypeNum         = 1034,                         /* "TB Setup" */
  120.     kMailSetupAttrTypeNum       = 1035,                         /* "Mail Setup" */
  121.     kSlotIDAttrTypeNum          = 1036,                         /* "SlotID" */
  122.     kGatewayFileIDAttrTypeNum   = 1037,                         /* "Gateway FileID" */
  123.     kMailServiceAttrTypeNum     = 1038,                         /* "Mail Service" */
  124.     kStdSlotInfoAttrTypeNum     = 1039,                         /* "Std Slot Info" */
  125.     kAssoDirectoryAttrTypeNum   = 1040,                         /* "Asso. Directory" */
  126.     kDirectoryAttrTypeNum       = 1041,                         /* "Directory" */
  127.     kDirectoriesAttrTypeNum     = 1042,                         /* "Directories" */
  128.     kSFlagsAttrTypeNum          = 1043,                         /* "SFlags" */
  129.     kLocalNameAttrTypeNum       = 1044,                         /* "Local Name" */
  130.     kLocalKeyAttrTypeNum        = 1045,                         /* "Local Key" */
  131.     kDirUserRIDAttrTypeNum      = 1046,                         /* "Dir User RID" */
  132.     kDirUserKeyAttrTypeNum      = 1047,                         /* "Dir User Key" */
  133.     kDirNativeNameAttrTypeNum   = 1048,                         /* "Dir Native Name" */
  134.     kCommentAttrTypeNum         = 1049,                         /* "Comment" */
  135.     kRealNameAttrTypeNum        = 1050,                         /* "Real Name" */
  136.     kPrivateDataAttrTypeNum     = 1051,                         /* "Private Data" */
  137.     kDirTypeAttrTypeNum         = 1052,                         /* "Directory Type" */
  138.     kDSAMFileAliasAttrTypeNum   = 1053,                         /* "DSAM File Alias" */
  139.     kCanAddressToAttrTypeNum    = 1054,                         /* "Can Address To" */
  140.     kDiscriminatorAttrTypeNum   = 1055,                         /* "Discriminator" */
  141.     kAliasAttrTypeNum           = 1056,                         /* "Alias" */
  142.     kParentMSAMAttrTypeNum      = 1057,                         /* "Parent MSAM" */
  143.     kParentDSAMAttrTypeNum      = 1058,                         /* "Parent DSAM" */
  144.     kSlotAttrTypeNum            = 1059,                         /* "Slot" */
  145.     kAssoMailServiceAttrTypeNum = 1060,                         /* "Asso. Mail Service" */
  146.     kFakeAttrTypeNum            = 1061,                         /* "Fake" */
  147.     kInheritSysAdminAttrTypeNum = 1062,                         /* "Inherit SysAdministrators" */
  148.     kPreferredPDAttrTypeNum     = 1063,                         /* "Preferred PD" */
  149.     kLastLoginAttrTypeNum       = 1064,                         /* "Last Login" */
  150.     kMailerAOMStateAttrTypeNum  = 1065,                         /* "Mailer AOM State" */
  151.     kMailerSendOptionsAttrTypeNum = 1066,                       /* "Mailer Send Options" */
  152.     kJoinedAttrTypeNum          = 1067,                         /* "Joined" */
  153.     kUnconfiguredAttrTypeNum    = 1068,                         /* "Unconfigured" */
  154.     kVersionAttrTypeNum         = 1069,                         /* "Version" */
  155.     kLocationNamesAttrTypeNum   = 1070,                         /* "Location Names" */
  156.     kActiveAttrTypeNum          = 1071,                         /* "Active" */
  157.     kDeleteRequestedAttrTypeNum = 1072,                         /* "Delete Requested" */
  158.     kGatewayTypeAttrTypeNum     = 1073,                         /* "Gateway Type" */
  159.     kFirstOCEAttrTypeNum        = kMemberAttrTypeNum,           /* first standard OCE attr type */
  160.     kLastOCEAttrTypeNum         = kGatewayTypeAttrTypeNum,      /* last standard OCE attr type */
  161.     kNumOCEAttrTypes            = (kLastOCEAttrTypeNum - kFirstOCEAttrTypeNum + 1)
  162. };
  163. #endif /* REZ */
  164. /* Standard definitions for certain record types: */
  165. #define  kUserRecTypeBody           "aoce User"
  166. #define  kGroupRecTypeBody          "aoce Group"
  167. #define  kMnMRecTypeBody            "aoce AppleMail