microsoft / microsoft/wil

Feature request: Add functions to enumerate Toolhelp32Snapshot

Open
#436 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request
Dominant language
C++
Stars
3k
Forks
300
Avg merge
19h 12m
Merged PRs (30d)
1

Description

Found myself often needed to enumerate modules/threads of a process, something you do with CreateToolhelp32Snapshot. Its current usage is a bit chunky with needing to first call xxxFirst followed with xxxNext. Everytime I just roll up a helper function to make the code more readable. As a result, a generic helper function for it would be great.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the CreateToolhelp32Snapshot entry point and the existing xxxFirst/xxxNext usage described in the issue. Determine the helper shape for enumerating process modules and threads, then verify that callers can use the helpers without manually pairing the First and Next calls.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.