Eagle Eye Mini Camera Driver Windows 10 Site
case IOCTL_CAMERA_SET_FOCUS: if (InputBufferLength < sizeof(ULONG)) status = STATUS_INVALID_PARAMETER; break; ULONG focusValue = *(PULONG)inputBuffer; KdPrint(("Setting focus: %d\n", focusValue)); status = SendVendorCommand(deviceContext->UsbDevice, 0x02, focusValue); break;
// Setup packet for vendor request setupPacket.bmRequest = BMREQUEST_VENDOR_DEVICE_OUT; setupPacket.bRequest = Command; setupPacket.wValue = (USHORT)(Value & 0xFFFF); setupPacket.wIndex = (USHORT)((Value >> 16) & 0xFFFF); setupPacket.wLength = 0; eagle eye mini camera driver windows 10
CloseHandle(hCamera); return 0; !include $(NTMAKEENV)\makefile.def TARGETNAME=EagleEyeMini TARGETTYPE=DRIVER TARGETPATH=obj case IOCTL_CAMERA_SET_FOCUS: if (InputBufferLength <
WDFDEVICE device; WDF_IO_QUEUE_CONFIG queueConfig; WDF_OBJECT_ATTRIBUTES deviceAttributes; PDEVICE_CONTEXT deviceContext; NTSTATUS status; UNREFERENCED_PARAMETER(Driver); sizeof(ULONG)) status = STATUS_INVALID_PARAMETER
return STATUS_SUCCESS; NTSTATUS EagleEyeEvtDevicePrepareHardware( _In_ WDFDEVICE Device, _In_ WDFCMRESLIST ResourceList, _In_ WDFCMRESLIST ResourceListTranslated )
case IOCTL_CAMERA_GET_STATUS: if (OutputBufferLength < sizeof(CAMERA_STATUS)) status = STATUS_BUFFER_TOO_SMALL; break; PCAMERA_STATUS pStatus = (PCAMERA_STATUS)outputBuffer; status = GetCameraStatus(deviceContext->UsbDevice, pStatus); if (NT_SUCCESS(status)) bytesReturned = sizeof(CAMERA_STATUS); break;