microsoft / microsoft/win32metadata

IBindContext.RegisterObjectParam needs [Const] on the PWSTR in parameter

Open
#2,183 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1.5k
Forks
149
Avg merge
5d 16h
Merged PRs (30d)
4

Description

RegisterObjectParam has a PWSTR parameter but it should be a [Const] param so we can promote the parameter to be a string in the projections.

```
[Documentation("https://learn.microsoft.com/windows/win32/api/objidl/nf-objidl-ibindctx-registerobjectparam")]
HRESULT RegisterObjectParam([In] PWSTR pszKey, [In] IUnknown punk);
```

pszKey should also have `[Const]`.

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

Locate the Win32 metadata declaration for IBindContext.RegisterObjectParam and compare its pszKey parameter with the issue's signature and linked API documentation. Add the missing [Const] annotation, then verify that the declaration produces the intended string projection.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
api, tooling
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.