home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 3
/
CDASC03.ISO
/
sorties
/
1960
/
fshl125.lzh
/
TESTDLL.LZH
/
TESTDLL.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-02-21
|
939b
|
60 lines
#include <string.h>
#define INCL_DOS
#define INCL_VIO
#define INCL_NOPM
#include <os2.h>
USHORT APIENTRY INIT(VOID);
USHORT APIENTRY CLEANUP(VOID);
USHORT APIENTRY PROCESS(PCHAR pchToken, PCHAR pchCmdLine);
static VOID prt1(PCHAR pch);
static VOID prt2(PCHAR pch1, PCHAR pch2);
USHORT APIENTRY INIT()
{
prt1("In TestDLL.INIT. Mem allocation, whatever goes here.\r\n");
return 0;
}
USHORT APIENTRY CLEANUP()
{
prt1("In TestDLL.CLEANUP. Mem deallocation, etc. goes here.\r\n");
return 0;
}
USHORT APIENTRY PROCESS(PCHAR pchToken, PCHAR pchCmdLine)
{
prt1("In TestDLL.PROCESS.\r\n");
prt2(" token = [", pchToken);
prt2(" cmdline = [", pchCmdLine ? pchCmdLine : "<null>");
return 0;
}
static VOID prt1(PCHAR pch)
{
VioWrtTTY(pch, strlen(pch), 0);
}
static VOID prt2(PCHAR pch1, PCHAR pch2)
{
prt1(pch1);
prt1(pch2);
prt1("]\r\n");
}