microsoft / microsoft/win32metadata
Missing P/Invokes for publicly documented Dism methods like `DismOpenSession`, etc.
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.5k
- Forks
- 149
- Avg merge
- 5d 16h
- Merged PRs (30d)
- 4
Description
## Actual behavior
I'm trying to do some stuff with Dism, and the first thing I need is [`DismOpenSession()`](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/dism/dismopensession-function?view=windows-11) but it's not available. I'm not sure if this is a CsWin32 thing or a win32metadata thing.
## Expected behavior
That this P/Invoke exist, along with all other publicly documented methods.
## Repro steps
1. `NativeMethods.txt` content:
```
DismOpenSession
```
2. `NativeMethods.json` content (if present): N/A
3. Any of your own code that should be shared? N/A
### Context
- CsWin32 version: 0.3.275
- Win32Metadata version (if explicitly set by project): N/A
- Target Framework: net472
- `LangVersion` (if explicitly set by project): latest
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the DismOpenSession entry point and the NativeMethods.txt request shown in the issue, then compare the win32metadata representation with how CsWin32 resolves it. The NativeMethods.json example is marked N/A, so determine which metadata source is missing the publicly documented Dism methods. Done means DismOpenSession and the other documented methods generate P/Invokes from NativeMethods.txt.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, csharp
- Domain
- devtools, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100