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

多媒体编程

开发平台:

Visual C++

  1. /*
  2.      File:       CRMSerialDevices.h
  3.  
  4.      Contains:   Communications Resource Manager Serial Device interfaces.
  5.  
  6.      Version:    Technology: System 7.5
  7.                  Release:    QuickTime 6.0.2
  8.  
  9.      Copyright:  (c) 1988-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 __CRMSERIALDEVICES__
  18. #define __CRMSERIALDEVICES__
  19. #ifndef __MACTYPES__
  20. #include "MacTypes.h"
  21. #endif
  22. #if PRAGMA_ONCE
  23. #pragma once
  24. #endif
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28. #if PRAGMA_IMPORT
  29. #pragma import on
  30. #endif
  31. #if PRAGMA_STRUCT_ALIGN
  32.     #pragma options align=mac68k
  33. #elif PRAGMA_STRUCT_PACKPUSH
  34.     #pragma pack(push, 2)
  35. #elif PRAGMA_STRUCT_PACK
  36.     #pragma pack(2)
  37. #endif
  38. #if CALL_NOT_IN_CARBON
  39. enum {
  40.                                                                 /*    for the crmDeviceType field of the CRMRec data structure  */
  41.     crmSerialDevice             = 1,                            /*    version of the CRMSerialRecord below   */
  42.     curCRMSerRecVers            = 1
  43. };
  44. /* Maintains compatibility w/ apps & tools that expect an old style icon    */
  45. struct CRMIconRecord {
  46.     long                            oldIcon[32];                /* ICN#   */
  47.     long                            oldMask[32];
  48.     Handle                          theSuite;                   /* Handle to an IconSuite */
  49.     long                            reserved;
  50. };
  51. typedef struct CRMIconRecord            CRMIconRecord;
  52. typedef CRMIconRecord *                 CRMIconPtr;
  53. typedef CRMIconPtr *                    CRMIconHandle;
  54. struct CRMSerialRecord {
  55.     short                           version;
  56.     StringHandle                    inputDriverName;
  57.     StringHandle                    outputDriverName;
  58.     StringHandle                    name;
  59.     CRMIconHandle                   deviceIcon;
  60.     long                            ratedSpeed;
  61.     long                            maxSpeed;
  62.     long                            reserved;
  63. };
  64. typedef struct CRMSerialRecord          CRMSerialRecord;
  65. typedef CRMSerialRecord *               CRMSerialPtr;
  66. #endif  /* CALL_NOT_IN_CARBON */
  67. #if PRAGMA_STRUCT_ALIGN
  68.     #pragma options align=reset
  69. #elif PRAGMA_STRUCT_PACKPUSH
  70.     #pragma pack(pop)
  71. #elif PRAGMA_STRUCT_PACK
  72.     #pragma pack()
  73. #endif
  74. #ifdef PRAGMA_IMPORT_OFF
  75. #pragma import off
  76. #elif PRAGMA_IMPORT
  77. #pragma import reset
  78. #endif
  79. #ifdef __cplusplus
  80. }
  81. #endif
  82. #endif /* __CRMSERIALDEVICES__ */