home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / New System Software Extensions / OpenDoc A6 / OpenDoc Parts Framework / OPF / Found / BCCollec / Sources / BCWep.cpp < prev   
Encoding:
C/C++ Source or Header  |  1994-04-21  |  1.4 KB  |  50 lines  |  [TEXT/MPS ]

  1. #if defined(FW_BUILD_WIN) && !defined(FW_BUILD_WIN32S) && !defined(FW_BUILD_WINNT)
  2.  
  3. //========================================================================================
  4. //
  5. //    File:                BCWep.cpp
  6. //    Release Version:    $ 1.0d1 $
  7. //
  8. //    Creation Date:        3/28/94
  9. //
  10. //    Copyright:    © 1994 by Apple Computer, Inc., all rights reserved.
  11. //
  12. //========================================================================================
  13. /*
  14.  
  15. Some notes on WEP's that are not in the manuals:
  16.  
  17.  o    Some of the examples in the documentastion include the RESIDENTNAME
  18.     attribute on the WEP exports.  Althought documentation does not say so,
  19.     this is required.
  20.  
  21.  o    Although the documentation says that WEP's have no return valus, they really
  22.     do.  WEP's return a sucess/failure code: 1 of OK, 0 if failed.  What windows
  23.     does if a WEP fails is unknown.
  24.  
  25.  o    When a WEP is called when that calling application terminates (as opposed to
  26.     an UnloadLibrary call) it is called on a very small kernel stack.  There is
  27.     not enough space on this stack for the kernel to swap in a new segment.  Can
  28.     you say "kernel bug"?  Therefore WEP's must be in FIXED PRELOAD segments and
  29.     must be *extremly* cautious with stack usage.  The actual amount of stack
  30.     remaining is not known.
  31.  
  32. This information is from Microsoft technical support.
  33. */
  34.  
  35.  
  36. // Make sure WEP doesn't get mangled
  37.  
  38. extern "C"
  39. {
  40.   int  _far _pascal  WEP(int sys_exit);
  41. };
  42.  
  43.  
  44. int _far _pascal WEP(int sys_exit)
  45. {
  46.     return(1);
  47. }
  48.  
  49. #endif
  50.