Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Add WinUsb API #474

Merged
merged 3 commits into from
Jul 1, 2020
Merged

Add WinUsb API #474

merged 3 commits into from
Jul 1, 2020

Conversation

qmfrederik
Copy link
Contributor

  • WinUsb_Initialize
  • WinUsb_QueryPipe
  • WinUsb_WritePipe
  • WinUsb_ReadPipe
  • WinUsb_ResetPipe
  • WinUsb_AbortPipe
  • WinUsb_Free

@qmfrederik qmfrederik marked this pull request as draft July 1, 2020 10:14
Copy link
Collaborator

@AArnott AArnott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

src/PInvoke.sln Show resolved Hide resolved
/// </returns>
[DllImport(nameof(WinUsb), SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool WinUsb_Free(IntPtr handle);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We tend to keep these handle-closing p/invokes private since users should be using our SafeHandles.

src/WinUsb/WinUsb.cs Outdated Show resolved Hide resolved
src/WinUsb/WinUsb.cs Outdated Show resolved Hide resolved
src/WinUsb/WinUsb.cs Outdated Show resolved Hide resolved
src/WinUsb/WinUsb.cs Show resolved Hide resolved
@qmfrederik qmfrederik marked this pull request as ready for review July 1, 2020 20:36
@AArnott AArnott merged commit 64aee9b into dotnet:master Jul 1, 2020
@AArnott
Copy link
Collaborator

AArnott commented Jul 1, 2020

Thanks again!

@qmfrederik qmfrederik deleted the features/winusb branch July 1, 2020 21:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants