Tim Roberts wrote:
> Pete Batard wrote:
>>
>> Now that I think about it, and especially as I still have some hope
>> that it might be possible to pick the Windows 8.1 WinUSB driver and
>> install it on Windows 7 & Windows 8.0 machines, the right way to find
>> if WinUSB isoc is supported is to use |GetProcAddress()| on the
>> WinUSB DLL, to see if it has a |WinUsb_ReadIsochPipe| entry.
>>
>> Besides, |GetProcAddress()| is already what we're using to get our
>> WinUSB entrypoints in winusbx_init
>> <https://github.com/libusbx/libusbx/blob/master/libusb/os/windows_usb.c#L2543>,
>> so it should be pretty straightforward to check if the address of the
>> calls we need is NULL in the isoc libusb functions, and return not
>> supported if that's the case.
>>
>

OK, I received a reply from the WDK team -- one that I'm not sure I like.

The 8.1 WDK does not contain a new redistributable WinUSB co-installer,
so the only way to get these APIs is through the in-box WinUSB
components.  Those components have dependencies on other Win 8.1
components, so they cannot be copied to earlier systems.

The short answer, for now at least, is that your GetProcAddress
suggestion is the right one.

So, why don't I like it?  Primarily because this represents a change in
philosophy.  I don't mind changes in structures and APIs as long as the
basic philosophies remain the same.  It is now possible for me to
compile an application using the 8.1 WDK libraries that will fail when
run on any earlier operating system.  That's not a good situation.

-- 
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to