pinvoke icon indicating copy to clipboard operation
pinvoke copied to clipboard

Support Win32 Events

Open qmfrederik opened this issue 5 years ago • 1 comments

Overlapped I/O uses Win32 events to signal the completion of an overlapped I/O operation. .NET nor PInvoke.Kernel32 provide built-in support for working with Win32 events.

Consider adding support for:

Split off from https://github.com/dotnet/pinvoke/pull/513#discussion_r456068538

qmfrederik avatar Jul 17 '20 08:07 qmfrederik

The p/invokes are fine to add. I'm less convinced we should create and/or expose an GetAwaiter extension for WaitHandle, particularly since it's already done in a public Microsoft-owned package. If we needed a copy internally, we could consider that.

AArnott avatar Jul 17 '20 14:07 AArnott