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
Post a Comment