Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide metadata for error sentinel values returned by some Win32 APIs #1551

Closed
talagrand opened this issue Apr 26, 2023 · 1 comment
Closed

Comments

@talagrand
Copy link

This is a follow-up to microsoft/windows-rs#2476 (comment)
Ideally, Win32 APIs that return a sentinel on failure would be annotated as such, so that the associated projection can implicitly handle these as error conditions.
Examples of such APIs: ExpandEnvironmentStringsW (returns 0 on failure) or ResumeThread (returns -1) or GlobalLock (returns NULL).

@mikebattista
Copy link
Collaborator

Duplicate of #536

@mikebattista mikebattista marked this as a duplicate of #536 Apr 26, 2023
@mikebattista mikebattista closed this as not planned Won't fix, can't repro, duplicate, stale Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants