DangerousGetHandle() public method

public DangerousGetHandle ( ) : IntPtr
return System.IntPtr
Ejemplo n.º 1
0
 /// <Summary>Writes data to a pipe.</Summary>
 public bool WritePipe(byte PipeID, Array Buffer, uint BufferLength, out uint LengthTransferred, KOVL_HANDLE Overlapped)
 {
     return driverAPI.WritePipe(handle,
                                PipeID,
                                Marshal.UnsafeAddrOfPinnedArrayElement(Buffer, 0),
                                BufferLength,
                                out LengthTransferred,
                                Overlapped.DangerousGetHandle());
 }
Ejemplo n.º 2
0
 /// <Summary>Writes data to a pipe.</Summary>
 public bool WritePipe(byte PipeID, IntPtr Buffer, uint BufferLength, out uint LengthTransferred, KOVL_HANDLE Overlapped)
 {
     return driverAPI.WritePipe(handle, PipeID, Buffer, BufferLength, out LengthTransferred, Overlapped.DangerousGetHandle());
 }
Ejemplo n.º 3
0
 /// <Summary>Writes to an isochronous pipe.</Summary>
 public bool IsoWritePipe(byte PipeID, IntPtr Buffer, uint BufferLength, KOVL_HANDLE Overlapped, KISO_CONTEXT IsoContext)
 {
     return driverAPI.IsoWritePipe(handle, PipeID, Buffer, BufferLength, Overlapped.DangerousGetHandle(), IsoContext);
 }
Ejemplo n.º 4
0
 /// <Summary>Writes to an isochronous pipe.</Summary>
 public bool IsoWritePipe(byte PipeID, Array Buffer, uint BufferLength, KOVL_HANDLE Overlapped, KISO_CONTEXT IsoContext)
 {
     return driverAPI.IsoWritePipe(handle, PipeID, Marshal.UnsafeAddrOfPinnedArrayElement(Buffer, 0), BufferLength, Overlapped.DangerousGetHandle(), IsoContext);
 }
Ejemplo n.º 5
0
 /// <Summary>Retrieves the results of an overlapped operation on the specified libusbK handle.</Summary>
 public bool GetOverlappedResult(KOVL_HANDLE Overlapped, out uint lpNumberOfBytesTransferred, bool bWait)
 {
     return driverAPI.GetOverlappedResult(handle, Overlapped.DangerousGetHandle(), out lpNumberOfBytesTransferred, bWait);
 }
Ejemplo n.º 6
0
 /// <Summary>Transmits control data over a default control endpoint.</Summary>
 public bool ControlTransfer(WINUSB_SETUP_PACKET SetupPacket, IntPtr Buffer, uint BufferLength, out uint LengthTransferred, KOVL_HANDLE Overlapped)
 {
     return driverAPI.ControlTransfer(handle, SetupPacket, Buffer, BufferLength, out LengthTransferred, Overlapped.DangerousGetHandle());
 }
Ejemplo n.º 7
0
 /// <Summary>Transmits control data over a default control endpoint.</Summary>
 public bool ControlTransfer(WINUSB_SETUP_PACKET SetupPacket, Array Buffer, uint BufferLength, out uint LengthTransferred, KOVL_HANDLE Overlapped)
 {
     return driverAPI.ControlTransfer(handle,
                                      SetupPacket,
                                      Marshal.UnsafeAddrOfPinnedArrayElement(Buffer, 0),
                                      BufferLength,
                                      out LengthTransferred,
                                      Overlapped.DangerousGetHandle());
 }