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
[ :x: ] Bug fix (non-breaking change which fixes an issue)
[ :heavy_check_mark: ] New feature (non-breaking change which adds functionality)
[ :x: ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[x] My code follows the code style of this project.
[ ] I have updated the documentation accordingly.
[x] I have not added a new Haskell dependency.
[ ] I have included a changelog entry.
[x] I have not modified the version of the package in Win32.cabal.
Extended
System.Win32.Proccess
to includeModule32FirstW
/Module32NextW
Description
Also added a
th32SnapEnumModules
function as a sister toth32SnapEnumProcesses
Also addedtlhelp32_compat.h
file for older GHC versions. Also extendedTh32SnapFlags
with officialTH32CS_SNAPMODULE32
, addedtH32CS_SNAPMODULE64
to add backtH32CS_SNAPGETALLMODS
. Unsure whether this is the best type forModuleEntry32
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:
Win32.cabal
.