dotnet / pinvoke

A library containing all P/Invoke code so you don't have to import it every time. Maintained and updated to support the latest Windows OS.
MIT License
2.12k stars 222 forks source link

Use SafeHandleMinusOneIsInvalid as base class in Hid #341

Closed NN--- closed 7 years ago

NN--- commented 7 years ago

Other classes can derive from SafeHandleMinusOneIsInvalid. You can introduce also SafeHandleZeroOneIsInvalid for classes where it is relevant.

NN--- commented 7 years ago

Closing pull request. This type is supported only from .NET Core 2.0: https://docs.microsoft.com/en-us/dotnet/api/microsoft.win32.safehandles.safehandleminusoneisinvalid?view=netcore-2.0