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

多媒体编程

开发平台:

Visual C++

  1. /*
  2.      File:       CMPRComponent.h
  3.  
  4.      Contains:   ColorSync ProfileResponder Component API
  5.  
  6.      Version:    Technology: ColorSync 1.0
  7.                  Release:    QuickTime 6.0.2
  8.  
  9.      Copyright:  (c) 1993-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 __CMPRCOMPONENT__
  18. #define __CMPRCOMPONENT__
  19. #ifndef __MACTYPES__
  20. #include "MacTypes.h"
  21. #endif
  22. #ifndef __QUICKDRAW__
  23. #include "Quickdraw.h"
  24. #endif
  25. #ifndef __COMPONENTS__
  26. #include "Components.h"
  27. #endif
  28. #ifndef __CMAPPLICATION__
  29. #include "CMApplication.h"
  30. #endif
  31. #if PRAGMA_ONCE
  32. #pragma once
  33. #endif
  34. #ifdef __cplusplus
  35. extern "C" {
  36. #endif
  37. #if PRAGMA_IMPORT
  38. #pragma import on
  39. #endif
  40. #if PRAGMA_STRUCT_ALIGN
  41.     #pragma options align=mac68k
  42. #elif PRAGMA_STRUCT_PACKPUSH
  43.     #pragma pack(push, 2)
  44. #elif PRAGMA_STRUCT_PACK
  45.     #pragma pack(2)
  46. #endif
  47. enum {
  48.     CMPRInterfaceVersion        = 0
  49. };
  50. /* Component function selectors */
  51. enum {
  52.     kCMPRGetProfile             = 0,
  53.     kCMPRSetProfile             = 1,
  54.     kCMPRSetProfileDescription  = 2,
  55.     kCMPRGetIndexedProfile      = 3,
  56.     kCMPRDeleteDeviceProfile    = 4
  57. };
  58. #if CALL_NOT_IN_CARBON
  59. EXTERN_API( CMError )
  60. CMGetProfile                    (ComponentInstance      pr,
  61.                                  CMProfileHandle        aProfile,
  62.                                  CMProfileHandle *      returnedProfile)                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x0000, 0x7000, 0xA82A);
  63. EXTERN_API( CMError )
  64. CMSetProfile                    (ComponentInstance      pr,
  65.                                  CMProfileHandle        newProfile)                         FIVEWORDINLINE(0x2F3C, 0x0004, 0x0001, 0x7000, 0xA82A);
  66. EXTERN_API( CMError )
  67. CMSetProfileDescription         (ComponentInstance      pr,
  68.                                  long                   DeviceData,
  69.                                  CMProfileHandle        hProfile)                           FIVEWORDINLINE(0x2F3C, 0x0008, 0x0002, 0x7000, 0xA82A);
  70. EXTERN_API( CMError )
  71. CMGetIndexedProfile             (ComponentInstance      pr,
  72.                                  CMProfileSearchRecordHandle  search,
  73.                                  CMProfileHandle *      returnProfile,
  74.                                  long *                 index)                              FIVEWORDINLINE(0x2F3C, 0x000C, 0x0003, 0x7000, 0xA82A);
  75. EXTERN_API( CMError )
  76. CMDeleteDeviceProfile           (ComponentInstance      pr,
  77.                                  CMProfileHandle        deleteMe)                           FIVEWORDINLINE(0x2F3C, 0x0004, 0x0004, 0x7000, 0xA82A);
  78. #endif  /* CALL_NOT_IN_CARBON */
  79. #if PRAGMA_STRUCT_ALIGN
  80.     #pragma options align=reset
  81. #elif PRAGMA_STRUCT_PACKPUSH
  82.     #pragma pack(pop)
  83. #elif PRAGMA_STRUCT_PACK
  84.     #pragma pack()
  85. #endif
  86. #ifdef PRAGMA_IMPORT_OFF
  87. #pragma import off
  88. #elif PRAGMA_IMPORT
  89. #pragma import reset
  90. #endif
  91. #ifdef __cplusplus
  92. }
  93. #endif
  94. #endif /* __CMPRCOMPONENT__ */