home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS - Coast to Coast
/
simteldosarchivecoasttocoast2.iso
/
wpj_mag
/
wpjv1n8.zip
/
GASH.ZIP
/
INSTANCE
/
INSTANCE.C
next >
Wrap
Text File
|
1993-08-16
|
519b
|
27 lines
/*
INSTANMCE.C - Get the HINSTANCE of a DLL from a given HMODULE
(C) 1993, Dennis CHUAH
*/
#define STRICT
#include <windows.h>
#include <windowsx.h>
#include <instance.h>
HINSTANCE WINAPI GetDllModuleInstance (HMODULE hModule)
{static char path[256];
HINSTANCE hInstance;
if (GetModuleFileName (hModule, path, 256) == 0) return NULL;
hInstance = LoadLibrary (path);
if (hInstance == NULL) return NULL;
FreeLibrary (hInstance);
return hInstance;
}