My sample application gets a COM IStream instance from a IPortableDeviceResources::GetStream() function. I want to read the device object contents asynchronously using this IStream object. How can I do that using an asynchronous moniker?
How to read WPD MTP data stream asynchronously?
567 Views Asked by user2059733 At
1
There are 1 best solutions below
Related Questions in WINAPI
- How to immediately apply DISPLAYCONFIG_SCALING display scaling mode with SetDisplayConfig and DISPLAYCONFIG_PATH_TARGET_INFO
- Changing the theme of a #32768 (menu) window class at runtime
- Issue with GetOpenFileName while debugging
- How to populate a ListBox with SendMessage?
- Is there a function to end a child process?
- HDR video publishing
- Frameless Qt + WinAPI maximized window size is bigger than the availableGeometry()
- Mount .iso file with python
- What is Win32 x86-64 CONTEXT::VectorRegister for?
- WinAPI - right mouse drag & drop and IContextMenu
- Win32 per-filesystem cache tuning?
- Client connection timeout during Android & Windows PC communication via sockets
- MessageBoxEx sometimes shows as hollow window, border only, and only on Windows 11
- Win32api send message and Pydirectinput and Powertoy (Keyboard Manager ) Not working when open the application
- Would it be possible to run an application right after csrss.exe loads? (Windows)
Related Questions in COM
- How to program a COM object with an IEnumerator, IEnumerable interface inside
- WinAPI - right mouse drag & drop and IContextMenu
- Function Returning Excel COM Objects Unexpectedly
- Windows ContextMenuHandler names - Document conflict?
- How to publish a console application with COM interop and trim unused code
- IContextMenu Handler - Should ShellExecute or CreateProcess be used to InvokeCommand?
- Windows Explorer Conditional Context Menu Item for Drive?
- How do I fix an error while trying to send email using Outlook with COM?
- ITypeLib2.GetLibStatistics() always throws AccessViolationException in C#
- Directwrite is not always able to query font
- How can I pass a C++ struct to a C# DLL method using COM interop
- VBA PowerPoint Run-time error '-2147467259' (80004005): Presentation.Close: Failed
- PHP using a dll with COM + dotnet
- d3d11 triangle rendering failure despite everything being properly initialized
- COM context menu InvokeCommand not being called
Related Questions in WPD
- Windows 10 can't replace a deleted file on some Android devices' data directory
- Is there a way to set an exact match between a connected device via adb and via mtp?
- Where can I get PortableDevice.h or WPD defined constant GUIDs and such?
- Windows Portable Devices (WPD), C#: How to set "date modified" when creating a file on Portable Device
- PortableDeviceApiLib show progress TransferContentToDevice()
- WPD/MTP PortableDevices, Content is always empty (Windows, VisualStudio 2012, VB.NET)
- Disable portable device in windows
- PortableDeviceManagerClass in C# not able to initialize
- How to get parameters of an Picture Transfer Protocol event in Windows Portable Devices?
- How to create folder in MTP device by c# windows application?
- wpd c# enumerating devices content when more then one device is present
- How to close Windows Portable Device IStream opened in Python / pythoncom / comtypes
- How to get filtered target device information from windows upper class filter
- IPortableDeviceEventCallback doesn't work properly (strange behaviour)
- How to get notifications for File Changes on CD / DVD drive?
Related Questions in MONIKER
- Load HTML from IPersistMoniker to add base URL to relative links
- Getting display name of a DirectShow filter without a category
- Error with win32com.client.GetObject when connecting to SAP GUI
- Multi-targeting project raises The target "_GetRestoreSettingsPerFramework" does not exist
- C# : Get COM object from the Running Object Table
- How to fix compile error 'System.ServiceModel.ComIntegration.IParseDisplayName' is inaccessible due to its protection level'
- COM+ activation on a remote server with partitions in C#
- C# Out-of-proc COM server w/ custom access
- What is the WCF service moniker for this configuration?
- How does task manager elevate without UAC Prompt?
- JavaScript - Protocol handlers registered but, reading fails from windows registry
- Calling WCF service from excel gives error on received message size
- Calling WCF service from Excel using moniker string and getting error for maxReceivedMessageSize of 65356 has been exceeded
- COM Elevation Moniker
- How to read WPD MTP data stream asynchronously?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
IStream is synchronous by design. I would first ask what your scenario is for needing this to be asynchronous.
For example, if the reason for wanting an asynchronous data stream is so that you won't block the UI thread, you can perform the IStream operations in a worker thread.
If the reason is so that you can issue multiple parallel reads, MTP 1.0 devices don't support this because at the driver level, the requests will still be processed sequentially in a single, global, MTP session. MTP 2.0 supports multi-session which allows for multiple parallel connections to the same device, but so far not many devices have adopted this. Most, if not all, MTP devices in the market are MTP 1.0.