microsoft / microsoft/win32metadata

Missing P/Invokes for publicly documented Dism methods like `DismOpenSession`, etc.

Open
#2,265 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

Open the contributing guide

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.