microsoft / microsoft/win32metadata

`FindWindow()` as emitted in CsWin32 has `SetLastError = true` despite the docs saying "This function does not modify the last error value.".

Open
#2,235 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.5k
Forks
149
Avg merge
5d 16h
Merged PRs (30d)
4

Description

I don't know what the source of truth is here, but the discrepancy should be addressed one way or another. https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-findwindowa#remarks

Contributor guide

Open the contributing guide

Research direction

Start by comparing the FindWindow declaration emitted in CsWin32 with the Microsoft documentation linked in the issue, then trace the corresponding Win32 metadata entry and its generation path. Done means the authoritative source and emitted SetLastError value agree, with any affected validation updated if the project has coverage for this declaration.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
operating-systems, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.