Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.0 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. bulkrwr.h
  5. Abstract:
  6. Environment:
  7. Kernel mode
  8. Notes:
  9. Copyright (c) 2000 Microsoft Corporation.
  10. All Rights Reserved.
  11. --*/
  12. #ifndef _BULKUSB_RWR_H
  13. #define _BULKUSB_RWR_H
  14. typedef struct _BULKUSB_RW_CONTEXT {
  15. PURB Urb;
  16. PMDL Mdl;
  17. ULONG Length; // remaining to xfer
  18. ULONG Numxfer; // cumulate xfer
  19. ULONG_PTR VirtualAddress; // va for next segment of xfer.
  20. PDEVICE_EXTENSION DeviceExtension;
  21. } BULKUSB_RW_CONTEXT, * PBULKUSB_RW_CONTEXT;
  22. PBULKUSB_PIPE_CONTEXT
  23. BulkUsb_PipeWithName(
  24. IN PDEVICE_OBJECT DeviceObject,
  25. IN PUNICODE_STRING FileName
  26. );
  27. NTSTATUS
  28. BulkUsb_DispatchReadWrite(
  29. IN PDEVICE_OBJECT DeviceObject,
  30. IN PIRP Irp
  31. );
  32. NTSTATUS
  33. BulkUsb_ReadWriteCompletion(
  34. IN PDEVICE_OBJECT DeviceObject,
  35. IN PIRP Irp,
  36. IN PVOID Context
  37. );
  38. #endif