Skip to content

PacketSendPacket fails with ERROR_OPERATION_ABORTED / 995 after Windows Sleep mode #584

Description

@DarkDarro

Npcap OEM 1.60
Microsoft Windows 10 Enterprise 10.0.1904
DiagReport-20220228-131015.txt

Steps to reproduce:

  • Open adapter handle via Npcap API
  • Use PacketSendPacket API repeatably to inject packets
  • Activate Sleep mode
  • Wake up from Sleep mode
  • Next PacketSendPacket call with the initial adapter handle sometimes fail
  • Check return value == false, GetLastError == ERROR_OPERATION_ABORTED

According to #506 it was changed for PacketReceivePacket, where the same adapter handle could be reused after pausing when the error code is ERROR_DEVICE_REMOVED. Can this be done for the send API, too?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions