none
DeviceIoControl with lasterror== 1784 RRS feed

  • Question

  • hi,

        I want to communicate with my UVC device with deviceIocontrol, but I could always get error code=1784, could you help me check if something is wrong, thanks,

    KSPROPERTY Pin;

    Pin.Flags = KSPROPERTY_TYPE_GET;

    Pin.Set = KSPROPSETID_Pin;

    Pin.Id = KSPROPERTY_PIN_CTYPES;

    if (DeviceIoControl(hFile, IOCTL_KS_PROPERTY, (PVOID)&Pin, sizeof(KSPROPERTY), NULL, 0, &multipleItemSize, NULL) == 0) {

    printf("error: %d, return value %d\n", GetLastError(), multipleItemSize);

    } else {

    printf("error: %d\n", GetLastError());

    }

    Tuesday, April 25, 2017 3:51 AM