usrVxdcom.c
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:2k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* usrVxdcomInit.c - VxDCOM configlette initialization file */ 
  2. /* Copyright 1999 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01n,10oct01,nel  Remove debug.
  7. 01m,10oct01,nel  SPR#70841. Add SCM stack size parameter.
  8. 01l,11jun01,nel  debug.
  9. 01k,12oct99,dbs  add INCLUDE_VXIDL_PS folder
  10. 01j,17aug99,aim  removed VXDCOM_OBJECT_EXPORTER_REUSE_PORT_NUMBER
  11. 01i,17aug99,aim  added ObjectExporter resources
  12. 01h,13aug99,aim  reworked globals (again)
  13. 01g,13aug99,aim  reworked globals
  14. 01f,21jul99,drm  Adding additional parameters to dcomLibInit() call.
  15. 01e,28jun99,dbs  add default authn level as arg to dcomLibInit()
  16. 01d,24may99,dbs  make configlette take user-configurable params
  17. 01c,20may99,dbs  fix names, add support for COM and DCOM separation
  18. 01b,29mar99,dbs  removed inclusion of comLib.h as its not C-friendly yet
  19. 01a,24mar99,drm  created 
  20. */
  21. extern int include_vxidl ();
  22. extern int dcomLibInit
  23.     (
  24.     int, /* BSTR policy */
  25.     int, /* DCOM Authentication level */
  26.     unsigned int, /* thread priority */
  27.     unsigned int, /* Static threads */
  28.     unsigned int, /* Dynamic threads */
  29.     unsigned int, /* Stack Size of server thread */
  30.     unsigned int, /* Stack Size of SCM thread */
  31.     int, /* Client Priority propogation */
  32.     int  /* Object Exporter Port Number */
  33.     );
  34. void usrVxdcomInit()
  35.     {
  36.     dcomLibInit (VXDCOM_BSTR_POLICY,
  37.  VXDCOM_AUTHN_LEVEL,
  38.  VXDCOM_THREAD_PRIORITY,
  39.  VXDCOM_STATIC_THREADS,
  40.  VXDCOM_DYNAMIC_THREADS,
  41.  VXDCOM_STACK_SIZE,
  42.  VXDCOM_SCM_STACK_SIZE,
  43.  VXDCOM_CLIENT_PRIORITY_PROPAGATION,
  44.  VXDCOM_OBJECT_EXPORTER_PORT_NUMBER);
  45. #ifdef INCLUDE_VXIDL_PS
  46.     include_vxidl ();
  47. #endif
  48.     }