home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / som / include / impldef.idl < prev    next >
Text File  |  1999-02-22  |  3KB  |  108 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. //#  @(#) 2.18.1.2 src/somd/impldef.idl, somd, som2.1 4/1/95 14:52:34 [7/30/96 14:45:26]
  14.  
  15.  
  16. //  CLASS SPECIFICATION FOR IMPLEMENTATION DEFINITION
  17.  
  18.  
  19. #ifndef impldef_idl
  20. #define impldef_idl
  21.  
  22. #include <somobj.idl>
  23. #include <somdtype.idl>
  24.  
  25.  
  26.  
  27. interface ImplementationDef : SOMObject
  28. {
  29.   // ImplementationDef attributes
  30.   attribute string        impl_id;
  31.   attribute string        impl_alias;
  32.   attribute string impl_program;
  33.   attribute Flags  impl_flags;
  34.   attribute string impl_server_class;
  35.   attribute string impl_refdata_file;
  36.   attribute string impl_refdata_bkup;
  37.   attribute string impl_hostname;
  38.  
  39. #ifdef __SOMIDL__
  40.  
  41.   implementation
  42.   {
  43.     releaseorder: _set_impl_id,           _get_impl_id,
  44.                   _set_impl_alias,        _get_impl_alias,
  45.                   _set_impl_program,      _get_impl_program,
  46.                   _set_impl_flags,        _get_impl_flags,
  47.                   _set_impl_server_class, _get_impl_server_class,
  48.                   _set_impl_socket_class, _get_impl_socket_class,
  49.                   _set_impl_refdata_file, _get_impl_refdata_file,
  50.                   _set_impl_refdata_bkup, _get_impl_refdata_bkup,
  51.                   _set_impl_hostname,     _get_impl_hostname,
  52.                   _set_impl_def_struct,   _get_impl_def_struct,
  53.           get_impl_winserver_handle;
  54.  
  55.     //# Class Modifiers
  56.     callstyle = idl;
  57.     dllname = "somd.dll";
  58.     majorversion = 2;
  59.     minorversion = 1;
  60.  
  61.     //# Passthrus
  62.     #define COMMON_H_PASSTHRU \
  63.       "" \
  64.       "/* flags */"               \
  65.       "#define IMPLDEF_MULTI_THREAD  0x00000001" \
  66.       "#define IMPLDEF_POOL_THREAD   0x00000002" \
  67.       "#define IMPLDEF_DISABLE_SVR   0x00000004" \
  68.       "#define IMPLDEF_IMPLID_SET    0x00000008" \
  69.       "#define IMPLDEF_NONSTOPPABLE  0x00000010" \
  70.       "#define IMPLDEF_SECUREMODE    0x00000020" \
  71.       ""
  72.  
  73.     passthru C_h_after  = COMMON_H_PASSTHRU
  74.       "#ifdef SOM_STRICT_IDL"
  75. #ifdef _WIN16
  76.       "#define SOMD_ImplDefObject (*SOMD_ImplDefObjectResolve())"
  77.       "SOMEXTERN ImplementationDef * SOMLINK SOMD_ImplDefObjectResolve(void);"
  78. #else
  79.       "SOMEXTERN ImplementationDef  SOMDLINK SOMD_ImplDefObject;"
  80. #endif
  81.       "#else"
  82. #ifdef _WIN16
  83.       "#define SOMD_ImplDefObject (*SOMD_ImplDefObjectResolve())"
  84.       "SOMEXTERN ImplementationDef ** SOMLINK SOMD_ImplDefObjectResolve(void);"
  85. #else
  86.       "SOMEXTERN ImplementationDef*  SOMDLINK SOMD_ImplDefObject;"
  87. #endif
  88.       "#endif /* SOM_STRICT_IDL */"
  89.       "";
  90.  
  91.     passthru C_xh_after = COMMON_H_PASSTHRU
  92.       "class ImplementationDef;"
  93. #ifdef _WIN16
  94.       "#define SOMD_ImplDefObject (*SOMD_ImplDefObjectResolve())"
  95.       "SOMEXTERN ImplementationDef ** SOMLINK SOMD_ImplDefObjectResolve(void);"
  96. #else
  97.       "SOMEXTERN ImplementationDef* SOMDLINK SOMD_ImplDefObject;"
  98. #endif
  99.       "";
  100.  
  101. };
  102.  
  103. #endif /* __SOMIDL__ */
  104.  
  105. };
  106.  
  107. #endif  /* impldef_idl */
  108.