haskell / win32

Haskell support for the Win32 API
http://hackage.haskell.org/package/Win32
Other
97 stars 63 forks source link

Add Basic Support for DLL modules from Process memory #121

Closed shekeru closed 5 years ago

shekeru commented 5 years ago

Extended System.Win32.Proccess to include Module32FirstW/Module32NextW

Description

Also added a th32SnapEnumModules function as a sister to th32SnapEnumProcesses Also added tlhelp32_compat.h file for older GHC versions. Also extended Th32SnapFlags with official TH32CS_SNAPMODULE32, added tH32CS_SNAPMODULE64 to add back tH32CS_SNAPGETALLMODS. Unsure whether this is the best type for ModuleEntry32

type ModuleEntry32 = (ForeignAddress, Int, HMODULE, String, String)

Motivation and Context

I needed these for a project of my own. Other people might find them convenient rather than having to fork the library.

Types of changes

Checklist: