Skip to content

WSAEVENT and WSA_INVALID_EVENT #1587

Closed
Closed

Description

The documentation for WSACreateEvent says that it returns a value of type WSAEVENT. In case of failure, it returns WSA_INVALID_EVENT.

However, in windows-sys, WSAEVENT is not defined and it returns a HANDLE. WSA_INVALID_EVENT is also not defined.

There is INVALID_HANDLE_VALUE. However, its value is -1, while WSA_INVALID_EVENT is NULL (looking at winsock2.h).

Am I missing something? I think there should be WSAEVENT and WSA_INVALID_EVENT to avoid confusion.

Activity

  1. kennykerr commented on Jun 5, 2023

    @kennykerr
    Contributor

    Looks like an issue with the Win32 metadata.

  2. added
    usability
    on Jun 29, 2023
  3. added a commit that references this issue on May 8, 2024
    332b931
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

usability

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions