Windows NDIS Driver: Concurrent Read/Write on a single device (IRP_MJ_READ/WRITE)

后端 未结 1 961
忘掉有多难
忘掉有多难 2021-01-17 02:41

Starting with the ndisprot sample from Microsoft I try to write a NDIS protocol driver. From User space I try to read and write to the device simultaneous (out of two thread

相关标签:
1条回答
  • 2021-01-17 03:07

    By default, you can only have one outstanding I/O request per usermode handle. Either open multiple handles, or open your one handle with FILE_FLAG_OVERLAPPED. (Once you use FILE_FLAG_OVERLAPPED, you also generally need to use OVERLAPPED structures - make sure you've got the gist of it by skimming this and this.)

    0 讨论(0)
提交回复
热议问题