2025-04-27 07:49:33 -04:00

54 lines
1.0 KiB
C

/*++
Copyright (c) 2000 Microsoft Corporation
Module Name:
bulkrwr.h
Abstract:
Environment:
Kernel mode
Notes:
Copyright (c) 2000 Microsoft Corporation.
All Rights Reserved.
--*/
#ifndef _BULKUSB_RWR_H
#define _BULKUSB_RWR_H
typedef struct _BULKUSB_RW_CONTEXT {
PURB Urb;
PMDL Mdl;
ULONG Length; // remaining to xfer
ULONG Numxfer; // cumulate xfer
ULONG_PTR VirtualAddress; // va for next segment of xfer.
PDEVICE_EXTENSION DeviceExtension;
} BULKUSB_RW_CONTEXT, * PBULKUSB_RW_CONTEXT;
PBULKUSB_PIPE_CONTEXT
BulkUsb_PipeWithName(
IN PDEVICE_OBJECT DeviceObject,
IN PUNICODE_STRING FileName
);
NTSTATUS
BulkUsb_DispatchReadWrite(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
);
NTSTATUS
BulkUsb_ReadWriteCompletion(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
IN PVOID Context
);
#endif