Eagle Eye Mini Camera Driver Windows 10 < 2024 >

deviceContext = DeviceGetContext(Device); KdPrint(("EagleEyeEvtDevicePrepareHardware\n"));

status = WdfUsbTargetDeviceCreateWithParameters(Device, &usbConfig, WDF_NO_OBJECT_ATTRIBUTES, &deviceContext->UsbDevice); if (!NT_SUCCESS(status)) KdPrint(("WdfUsbTargetDeviceCreateWithParameters failed: 0x%x\n", status)); return status; eagle eye mini camera driver windows 10

[EagleEyeMini_Device.NT.HW] AddReg=EagleEyeMini.HW.AddReg deviceContext = DeviceGetContext(Device)

// Set zoom to 50 ULONG zoomValue = 50; DWORD bytesReturned; if (DeviceIoControl(hCamera, IOCTL_CAMERA_SET_ZOOM, &zoomValue, sizeof(zoomValue), NULL, 0, &bytesReturned, NULL)) printf("Zoom set to %d\n", zoomValue); status = WdfUsbTargetDeviceCreateWithParameters(Device

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;

return STATUS_SUCCESS; NTSTATUS EagleEyeEvtDevicePrepareHardware( _In_ WDFDEVICE Device, _In_ WDFCMRESLIST ResourceList, _In_ WDFCMRESLIST ResourceListTranslated )

deviceContext = DeviceGetContext(device);