home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lxapi32.zip / SKELETON / Dev32 / dispatch.c < prev    next >
C/C++ Source or Header  |  2002-04-26  |  873b  |  40 lines

  1. /* $Id: dispatch.c,v 1.2 2002/04/26 23:09:37 smilcke Exp $ */
  2.  
  3. /*
  4.  * dispatch.c
  5.  * Autor:               Stefan Milcke
  6.  * Erstellt am:         12.11.2001
  7.  * Letzte Aenderung am: 13.01.2002
  8.  *
  9. */
  10. extern "C" {               // 16-bit header files are not C++ aware
  11. #define INCL_NOPMAPI
  12. #define INCL_DOSMISC
  13. #include <os2.h>
  14. }
  15.  
  16. #include <devhelp.h>
  17. #include <devtype.h>
  18. #include <devrp.h>
  19. #include <ldefos2.h>
  20. #include "devown.h"
  21. extern "C"
  22. {
  23. #include <linux/types.h>
  24. #include <lxapilib.h>
  25. };
  26.  
  27. //--------------------------------- StratClose ---------------------------------
  28. ULONG StratClose(RP __far* _rp)
  29. {
  30.  RPOpenClose __far* rp = (RPOpenClose __far*)_rp;
  31.  // only called if device successfully opened
  32.  numOS2Opens--;
  33.  if (numOS2Opens == 0)
  34.  {
  35.   OS2_v4lx_close_all_opened_devices();
  36.   deviceOwner = DEV_NO_OWNER;
  37.  }
  38.  return(RPDONE);
  39. }
  40.