microsoft / microsoft/win32metadata
IBindContext.RegisterObjectParam needs [Const] on the PWSTR in parameter
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
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
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