home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / impldef.idl < prev    next >
Encoding:
Text File  |  1996-02-21  |  3.8 KB  |  121 lines

  1. //
  2. //   COMPONENT_NAME: somd
  3. //
  4. //   ORIGINS: 27
  5. //
  6. //
  7. //   10H9767, 10H9769  (C) COPYRIGHT International Business Machines Corp. 1992,1994
  8. //   All Rights Reserved
  9. //   Licensed Materials - Property of IBM
  10. //   US Government Users Restricted Rights - Use, duplication or
  11. //   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  12. //
  13.  
  14. //  CLASS SPECIFICATION FOR IMPLEMENTATION DEFINITION
  15.  
  16.  
  17. #ifndef impldef_idl
  18. #define impldef_idl
  19.  
  20. #include <somobj.idl>
  21. #include <somdtype.idl>
  22.  
  23.  
  24. interface ImplementationDef : SOMObject
  25. {
  26.   // ImplementationDef attributes
  27.   attribute string        impl_id;
  28.   attribute string        impl_alias;
  29.   attribute string impl_program;
  30.   attribute Flags  impl_flags;
  31.   attribute string impl_server_class;
  32.   attribute string impl_refdata_file;
  33.   attribute string impl_refdata_bkup;
  34.   attribute string impl_hostname;
  35.  
  36. #ifdef __SOMIDL__
  37.  
  38.   implementation
  39.   {
  40.     releaseorder: _set_impl_id,           _get_impl_id,
  41.                   _set_impl_alias,        _get_impl_alias,
  42.                   _set_impl_program,      _get_impl_program,
  43.                   _set_impl_flags,        _get_impl_flags,
  44.                   _set_impl_server_class, _get_impl_server_class,
  45.                   _set_impl_socket_class, _get_impl_socket_class,
  46.                   _set_impl_refdata_file, _get_impl_refdata_file,
  47.                   _set_impl_refdata_bkup, _get_impl_refdata_bkup,
  48.                   _set_impl_hostname,     _get_impl_hostname,
  49.                   _set_impl_def_struct,   _get_impl_def_struct,
  50.           get_impl_winserver_handle;
  51.  
  52.     callstyle = idl;
  53.     dllname = "somd.dll";
  54.     majorversion = 2;
  55.     minorversion = 1;
  56.  
  57.     #define COMMON_H_PASSTHRU \
  58.       "" \
  59.       "/* flags */"               \
  60.       "#define IMPLDEF_MULTI_THREAD  0x00000001" \
  61.       "#define IMPLDEF_POOL_THREAD   0x00000002" \
  62.       "#define IMPLDEF_DISABLE_SVR   0x00000004" \
  63.       "#define IMPLDEF_IMPLID_SET    0x00000008" \
  64.       "#define IMPLDEF_NONSTOPPABLE  0x00000010" \
  65.       "#define IMPLDEF_SECUREMODE    0x00000020" \
  66.       ""
  67.  
  68.     passthru C_h_after  = COMMON_H_PASSTHRU
  69.       "#ifdef SOM_STRICT_IDL"
  70. #if defined(_WIN16)
  71.       "#define SOMD_ImplDefObject (*SOMD_ImplDefObjectResolve())"
  72.       "SOMEXTERN ImplementationDef * SOMLINK SOMD_ImplDefObjectResolve(void);"
  73. #elif defined(_WIN32)
  74.       "SOMEXTERN WIN32_DLLIMPORT ImplementationDef  SOMDLINK SOMD_ImplDefObject;"
  75. #else
  76.       "SOMEXTERN ImplementationDef  SOMDLINK SOMD_ImplDefObject;"
  77. #endif
  78.       "#else"
  79. #if defined(_WIN16)
  80.       "#define SOMD_ImplDefObject (*SOMD_ImplDefObjectResolve())"
  81.       "SOMEXTERN ImplementationDef ** SOMLINK SOMD_ImplDefObjectResolve(void);"
  82. #elif defined (_WIN32)
  83.       "SOMEXTERN WIN32_DLLIMPORT ImplementationDef*  SOMDLINK SOMD_ImplDefObject;"
  84. #else
  85.       "SOMEXTERN ImplementationDef*  SOMDLINK SOMD_ImplDefObject;"
  86. #endif
  87.       "#endif /* SOM_STRICT_IDL */"
  88.       "";
  89.  
  90.     passthru C_xh_after = COMMON_H_PASSTHRU
  91.       "class ImplementationDef;"
  92. #if defined(_WIN16)
  93.       "#define SOMD_ImplDefObject (*SOMD_ImplDefObjectResolve())"
  94.       "SOMEXTERN ImplementationDef ** SOMLINK SOMD_ImplDefObjectResolve(void);"
  95. #elif defined(_WIN32)
  96.       "SOMEXTERN WIN32_DLLIMPORT ImplementationDef*  SOMDLINK SOMD_ImplDefObject;"
  97. #else
  98.       "SOMEXTERN ImplementationDef* SOMDLINK SOMD_ImplDefObject;"
  99. #endif
  100.       "";
  101.  
  102.     passthru C_hh_after = COMMON_H_PASSTHRU
  103.       "class ImplementationDef;"
  104. #if defined(_WIN16)
  105.       "#define SOMD_ImplDefObject (*SOMD_ImplDefObjectResolve())"
  106.       "SOMEXTERN ImplementationDef ** SOMLINK SOMD_ImplDefObjectResolve(void);"
  107. #elif defined(_WIN32)
  108.       "SOMEXTERN WIN32_DLLIMPORT ImplementationDef*  SOMDLINK SOMD_ImplDefObject;"
  109. #else
  110.       "SOMEXTERN ImplementationDef* SOMDLINK SOMD_ImplDefObject;"
  111. #endif
  112.       "";
  113.  
  114. };
  115.  
  116. #endif /* __SOMIDL__ */
  117.  
  118. };
  119.  
  120. #endif  /* impldef_idl */
  121.