*/.cvsignore: Add various Win32 related file types.

2001-11-24  Tor Lillqvist  <tml@iki.fi>

	*/.cvsignore: Add various Win32 related file types.

gmodule:

2001-11-24  Tor Lillqvist  <tml@iki.fi>

	* Makefile.am: Remove rule for testgmodule.exp, too.

2001-11-22  Tor Lillqvist  <tml@iki.fi>

	* gmodule-win32.c: Current w32api headers do include tlhelp32.h,
	so no need to have an extract from it here.
This commit is contained in:
Tor Lillqvist
2001-11-24 18:53:03 +00:00
committed by Tor Lillqvist
parent bad5376d45
commit d4a5eab30b
8 changed files with 35 additions and 29 deletions

View File

@@ -2,10 +2,14 @@
*.obj
*.lib
*.dll
*.exp
*.ilk
*.pdb
Makefile
Makefile.in
makefile.msc
makefile.mingw
*-build.stamp
.deps
_libs
.libs

View File

@@ -1,3 +1,12 @@
2001-11-24 Tor Lillqvist <tml@iki.fi>
* Makefile.am: Remove rule for testgmodule.exp, too.
2001-11-22 Tor Lillqvist <tml@iki.fi>
* gmodule-win32.c: Current w32api headers do include tlhelp32.h,
so no need to have an extract from it here.
Mon Nov 19 16:12:12 2001 Owen Taylor <otaylor@redhat.com>
* Makefile.am makefile.msc.in makefile.mingw.in: Remove

View File

@@ -82,9 +82,6 @@ endif
gmodule-1.3.lib: libgmodule-1.3.la gmodule.def
lib -name:libgmodule-1.3-@LT_CURRENT_MINUS_AGE@.dll -def:gmodule.def -out:$@
testgmodule.exp: testgmodule.o
dlltool --output-exp testgmodule.exp testgmodule.o
gmodule.rc: $(top_builddir)/config.status $(top_srcdir)/gmodule/gmodule.rc.in
cd $(top_builddir) && CONFIG_FILES=gmodule/$@ CONFIG_HEADERS= $(SHELL) ./config.status

View File

@@ -34,38 +34,12 @@
#include <stdio.h>
#include <windows.h>
#ifdef __MSVC__
#include <tlhelp32.h>
#else
#ifdef G_WITH_CYGWIN
#include <sys/cygwin.h>
#endif
/* The w32api headers supplied with the mingw gcc don't have
* tlhelp32.h. We really only need the MODULEENTRY32 struct and the
* TH32CS_SNAPMODULE value, so provide them here.
*/
#define MAX_MODULE_NAME32 255
typedef struct
{
DWORD dwSize;
DWORD th32ModuleID;
DWORD th32ProcessID;
DWORD GlblcntUsage;
DWORD ProccntUsage;
BYTE *modBaseAddr;
DWORD modBaseSize;
HMODULE hModule;
char szModule[MAX_MODULE_NAME32 + 1];
char szExePath[MAX_PATH];
} MODULEENTRY32;
#define TH32CS_SNAPMODULE 8
#endif
static void
set_error (void)
{