USBD_STATUS_INSUFFICIENT_RESOURCES 0xC0001000 Insufficient resources. USBD_STATUS_SET_CONFIG_FAILED 0xC0002000 An attempt to change the device configuration failed. USBD_STATUS_BUFFER_TOO_SMALL 0xC0003000 The buffer is too small. USBD_STATUS_INTERFACE_NOT_FOUND 0xC0004000 The interface was not ...
//Irp could not be allocated. ntStatus = STATUS_INSUFFICIENT_RESOURCES; goto Exit; } ntStatus = SubmitUrbSync( deviceExtension->NextDeviceObject, irp, urb, CompletionRoutine); // Enumerate the pipes in the interface information array, which is now filled with pipe // information. for ( interf...
Return codeDescription STATUS_SUCCESS The request was successful. STATUS_INVALID_PARAMETER The caller passed an invalid parameter value. USBDHandle or Urb is NULL. STATUS_INSUFFICIENT_RESOURCES Insufficient memory available to complete the request. Remarks...
STATUS_INVALID_PARAMETER 调用方传递的参数值无效。 USBDHandle 或Urb 为NULL。 STATUS_INSUFFICIENT_RESOURCES 可用内存不足,无法完成请求。 注解在调用 USBD_SelectConfigUrbAllocateAndBuild 之前,客户端驱动程序必须执行以下任务:获取配置中的接口数。 此信息包含在 ConfigurationDescriptor 指向的 USB_CONFIGURATI...
USBD_STATUS 该USBD_STATUS数据类型为USB请求定义USB状态值。 的typedef LONG USBD_STATUS; USB状态值的最显著4位被如下表中所定义。 USB状态值的至少显著28位在下表中定义。 原文:https://msdn.microsoft.com/en-us/library/windows/hardware/ff539136(v=vs.85).aspx...
The USBD_STATUS data type defines USB status values for USB requests. typedef LONG USBD_STATUS; The most significant 4 bits of USB status values are defined in the following table. The least significant 28 bits of USB status values are defined in the following table....
&ioStatusBlock); if (irp == NULL) { return STATUS_INSUFFICIENT_RESOURCES; } irpStack = IoGetNextIrpStackLocation(irp); irpStack->MinorFunction = IRP_MN_QUERY_DEVICE_RELATIONS; irpStack->Parameters.QueryDeviceRelations.Type = TargetDeviceRelation; /* * Initialize the status to...
return STATUS_INSUFFICIENT_RESOURCES; servkey.Maximum Length=Registry Path->Length+sizeof(WCHAR); RtlCopyUnicodeString(&servkey,RegistryPath); return STATUS_SUCCESS; } (1)前三条语句为驱动程序的其它入口点设置了函数指针。在这里,我用了能表达其功能的名字命名了这些函数:DriverUnload、AddDevice、StartIo。
*/ enum libusb_error { /** Success (no error) */ LIBUSB_SUCCESS = 0, /** Input/output error */ LIBUSB_ERROR_IO = -1, /** Invalid parameter */ LIBUSB_ERROR_INVALID_PARAM = -2, /** Access denied (insufficient permissions) */ LIBUSB_ERROR_ACCESS = -3, /** No such device...
return STATUS_INSUFFICIENT_RESOURCES; } PIO_STACK_LOCATION stack = IoGetNextIrpStackLocation(Irp); stack->Parameters.Others.Argument1 = (PVOID) urb; NTSTATUS status = IoCallDriver(pdx->LowerDeviceObject, Irp); if (status == STATUS_PENDING) ...