home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
lxapi32.zip
/
SKELETON
/
Dev32
/
dispatch.c
< prev
next >
Wrap
C/C++ Source or Header
|
2002-04-26
|
873b
|
40 lines
/* $Id: dispatch.c,v 1.2 2002/04/26 23:09:37 smilcke Exp $ */
/*
* dispatch.c
* Autor: Stefan Milcke
* Erstellt am: 12.11.2001
* Letzte Aenderung am: 13.01.2002
*
*/
extern "C" { // 16-bit header files are not C++ aware
#define INCL_NOPMAPI
#define INCL_DOSMISC
#include <os2.h>
}
#include <devhelp.h>
#include <devtype.h>
#include <devrp.h>
#include <ldefos2.h>
#include "devown.h"
extern "C"
{
#include <linux/types.h>
#include <lxapilib.h>
};
//--------------------------------- StratClose ---------------------------------
ULONG StratClose(RP __far* _rp)
{
RPOpenClose __far* rp = (RPOpenClose __far*)_rp;
// only called if device successfully opened
numOS2Opens--;
if (numOS2Opens == 0)
{
OS2_v4lx_close_all_opened_devices();
deviceOwner = DEV_NO_OWNER;
}
return(RPDONE);
}