winapi - How to read WPD MTP data stream asynchronously? -



winapi - How to read WPD MTP data stream asynchronously? -

my sample application gets com istream instance iportabledeviceresources::getstream() function. want read device object contents asynchronously using istream object. how can using asynchronous moniker?

istream synchronous design. first inquire scenario needing asynchronous.

for example, if reason wanting asynchronous info stream won't block ui thread, can perform istream operations in worker thread.

if reason can issue multiple parallel reads, mtp 1.0 devices don't back upwards because @ driver level, requests still processed sequentially in single, global, mtp session. mtp 2.0 supports multi-session allows multiple parallel connections same device, far not many devices have adopted this. most, if not all, mtp devices in market mtp 1.0.

winapi com wpd moniker

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -