home *** CD-ROM | disk | FTP | other *** search
/ cyber.net 2 / cybernet2.ISO / qtw111 / inc / compmgr.h next >
C/C++ Source or Header  |  1993-03-11  |  2KB  |  71 lines

  1.  
  2. // ---------------------------------------------------------------------
  3. //
  4. // COMPMGR.H - QuickTime for Windows Component Header File
  5. //
  6. //             Version 1.0
  7. //
  8. //             (c) 1988-1993 Apple Computer, Inc. All Rights Reserved.
  9. //
  10. // ---------------------------------------------------------------------
  11.  
  12.  
  13. // Prevent multiple inclusion
  14. // --------------------------
  15. #ifndef __COMPMGR_H__
  16. #define __COMPMGR_H__
  17.  
  18.  
  19. // Support C++ Function Invocations
  20. // --------------------------------
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24.  
  25.  
  26. // thngIdentifify CID interface constants
  27. // --------------------------------------
  28. #define CID_VERSION  0x00010000           // version of CID interface
  29. #define THING  QTFOURCC('t','h','n','g')  // ostype to identify components
  30.  
  31.  
  32. // Component Flags
  33. // ---------------
  34. #define cmpWantsRegisterMessage     0x80000000
  35.  
  36.  
  37. // Component Manager/Component interface structure through thngIdentify
  38. // --------------------------------------------------------------------
  39. typedef struct tagCID {                   // Hungarian: cid
  40.   LONG      lVersion;                     // version of thngIdentify interface
  41.   short     sComponentCount;              // number of components within file
  42.   LPCD      lpcdTable;                    // pointer to ComponentDescription records
  43.   FIXUPFUNC lpfnTBFixup;                  // pointer to Toolbox entry point fixup
  44.   FIXUPFUNC lpfnCMFixup;                  // pointer to CM entry point fixup
  45. } CID, FAR *LPCID;
  46.  
  47.  
  48. // Component Selectors
  49. // -------------------
  50. #define kComponentOpenSelect        -1    // mandatory
  51. #define kComponentCloseSelect       -2    // mandatory
  52. #define kComponentCanDoSelect       -3    // mandatory
  53. #define kComponentVersionSelect     -4    // mandatory
  54. #define kComponentRegisterSelect    -5    // optional
  55. #define kComponentTargetSelect      -6    // optional
  56.  
  57.  
  58. // Stack offset for component functions
  59. // ------------------------------------
  60. typedef struct _tagSTKOFF_CMP {
  61.   WORD  words[3];                         // words on stack from glue code
  62. } STKOFF_CMP;
  63.  
  64.  
  65. #ifdef __cplusplus
  66. } // extern "C"
  67. #endif
  68.  
  69.  
  70. #endif // __COMPMGR_H__
  71.