microsoft / microsoft/wdkmetadata

Missing WDF Device Functions in Metadata

Open
#52 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
110
Forks
15
PR merge metrics
No merged PRs in 30d

Description

Hello,

While utilizing CsWin32 to generate P/Invoke signatures, I've discovered that several essential WDF device functions are absent from the available metadata:

WdfDeviceSetPnpCapabilities
WdfDeviceSetPowerCapabilities
WdfDeviceAssignMofResourceName
WdfDeviceSetFailed
WdfDeviceSetDeviceState

The lack of these functions is constraining the capabilities of the generated projects, impacting the development of varied and dependable drivers.

Could you please review the metadata and consider incorporating these missing functions, along with any other absent ones, to address this limitation?

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 by locating the WDF metadata entries used by CsWin32 for WdfDeviceSetPnpCapabilities, WdfDeviceSetPowerCapabilities, WdfDeviceAssignMofResourceName, WdfDeviceSetFailed, and WdfDeviceSetDeviceState. Compare the available metadata with the corresponding WDF API definitions and verify that generated P/Invoke signatures include the missing functions. Done means the named functions, plus any confirmed omissions, are represented in the metadata.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.