home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR16
/
BJFILT.ZIP
/
MON16.C
< prev
next >
Wrap
Text File
|
1994-02-03
|
2KB
|
61 lines
/* mon16.c */
#include <os2.h>
#include "mon16.h"
USHORT _THUNK_FUNCTION (Dos16MonWrite) ();
USHORT _THUNK_FUNCTION (Dos16MonRead) ();
USHORT _THUNK_FUNCTION (Dos16MonClose) ();
USHORT _THUNK_FUNCTION (Dos16MonOpen) ();
USHORT _THUNK_FUNCTION (Dos16MonReg) ();
USHORT DosMonWrite (PBYTE pbOutBuf, PBYTE pbDataBuf, USHORT cbData)
{
return ((USHORT)
(_THUNK_PROLOG (4+4+2);
_THUNK_FLAT (pbOutBuf);
_THUNK_FLAT (pbDataBuf);
_THUNK_SHORT (cbData);
_THUNK_CALL (Dos16MonWrite)));
}
USHORT DosMonRead (PBYTE pbInBuf, USHORT fWait, PBYTE pbDataBuf, PUSHORT pcbData)
{
return ((USHORT)
(_THUNK_PROLOG (4+2+4+4);
_THUNK_FLAT (pbInBuf);
_THUNK_SHORT (fWait);
_THUNK_FLAT (pbDataBuf);
_THUNK_FLAT (pcbData);
_THUNK_CALL (Dos16MonRead)));
}
USHORT DosMonClose (HMONITOR hmon)
{
return ((USHORT)
(_THUNK_PROLOG (2);
_THUNK_SHORT (hmon);
_THUNK_CALL (Dos16MonClose)));
}
USHORT DosMonOpen (PSZ pszDevName, PHMONITOR phmon)
{
return ((USHORT)
(_THUNK_PROLOG (4+4);
_THUNK_FLAT (pszDevName);
_THUNK_FLAT (phmon);
_THUNK_CALL (Dos16MonOpen)));
}
USHORT DosMonReg (HMONITOR hmon, PBYTE pbInBuf, PBYTE pbOutBuf,
USHORT fPosition, USHORT usIndex)
{
return ((USHORT)
(_THUNK_PROLOG (2+4+4+2+2);
_THUNK_SHORT (hmon);
_THUNK_FLAT (pbInBuf);
_THUNK_FLAT (pbOutBuf);
_THUNK_SHORT (fPosition);
_THUNK_SHORT (usIndex);
_THUNK_CALL (Dos16MonReg)));
}