home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS - Coast to Coast
/
simteldosarchivecoasttocoast2.iso
/
wpj_mag
/
wpjv1n8.zip
/
GASH.ZIP
/
TEST
/
DLL
/
TESTDLL.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-11
|
678b
|
42 lines
#define STRICT
#include <windows.h>
#include <windowsx.h>
#include "dll.h"
HINSTANCE hInst;
#pragma argsused
int CALLBACK LibMain (HINSTANCE hInstance, WORD wDataSeg,
WORD cbHeapSize, LPSTR lpszCmdLine)
{if (cbHeapSize > 0) UnlockData (0);
hInst = hInstance;
return 1;
} // end LibMain
// DLL termination procedure
#pragma argsused
int CALLBACK WEP (int iParam)
{return 1;
} // end WEP
HINSTANCE WINAPI GetDLLInstance (void)
{return hInst;
}
HMODULE WINAPI GetDLLModule (void)
{return GetInstanceModule (hInst);
}
HTASK WINAPI GetDLLTask (void)
{return GetCurrentTask ();
}