Questions tagged [wpd]

Windows Portable Devices (WPD) enables computers to communicate with attached media and storage devices.

Windows Portable Devices (WPD) enables computers to communicate with attached media and storage devices.

WPD provides a way for computers to communicate with music players, storage devices, mobile phones, cameras, and many other types of connected devices.

Applications that are built on WPD can explore a device, send and receive content, and even control the device, for example, take a picture or send a text message. The system is designed to be flexible so that many types of devices can be explored, and extensible so that driver developers can define custom properties and commands for custom devices.

Reference

101 questions
4
votes
1 answer

Alternatives to WPD/WIA on Windows XP?

WPD does not work correctly on Windows XP (SP1 if that matters), even if Microsoft states it does. Problem with WPD: IPortableDeviceManager.GetDevices call does not find any devices on Win XP while it finds all connected cameras on Windows 7. A few…
Marek
  • 10,307
  • 8
  • 70
  • 106
4
votes
1 answer

Copy files with WPD to Windows Phone C#

I want to copy at least one file to a windows phone via MTP. I am able to connect to the phone and copy files from the phone to the computer following this tutorial: WPD: Transferring Content However I am unable to copy files the other way round…
j0h4nn3s
  • 2,016
  • 2
  • 20
  • 35
4
votes
4 answers

Errors while using WPD (Windows Portable Device) Apis for transferring image files

I have been trying to write a sample application in c# using WPD Apis for transferring image files to a connected WPD supported device. I have been following THIS link. My problem is that everytime i try and transfer a file i keep getting the error:…
Anuj
  • 389
  • 1
  • 5
  • 20
3
votes
1 answer

How do I create an instance of IPortableDeviceManager?

I'm trying to create an instance of the IPortableDeviceManager class with the method CoCreateInstance(..) but I cannot find the CLSID a.k.a GUID of the class. I dived in to the Windows SDK in an attempt to find the GUID but the only thing I could…
Kevin
  • 5,626
  • 3
  • 28
  • 41
3
votes
1 answer

wpd c# enumerating devices content when more then one device is present

I developed an application that enumerates and merges the content maps of all drives ever connected to a system. Doing the same for devices with the WPD API Interop.PortableDeviceApiLib.dll, there is a marshal limit for managing contemporary…
fbazzi
  • 31
  • 3
3
votes
1 answer

WPD equivalent of WIA DeviceDlg

I'm adding Windows Portable Devices (WPD) support to an app that currently uses Windows Image Acquisition (WIA). WIA provides a handy picture selection dialog via IWiaItem::DeviceDlg. I can't find a WPD equivalent. Is there one, and, if not, what is…
chrisd
  • 245
  • 4
  • 12
3
votes
2 answers

trouble referencing Windows Portable Device files in VBA?

I have been tirelessly searching for a solution to my problem but have not found anything helpful!! So I hope someone on here can help my specific situation... Thanks in advance! So, I have a barcode scanner that stores inventory in its internal…
ariel
  • 31
  • 2
3
votes
1 answer

How to get the list of all the files(objects) in a folder exposed by an MTP device using Windows Portable Devices C++ API?

It is possible to enumerate all the files in an MTP device's file system and then get object id's for each file/folder in the system. My questions are: Is there a method to find if an object is a file or a folder? Once the folder is found how to…
sp497
  • 2,363
  • 7
  • 25
  • 43
3
votes
3 answers

Accessing an MTP/WPD device in Visual Basic .NET

Are there any libraries available for VB.net which will enable me to easily access a MTP device? I'd like to be able to find out what devices are connected, list the contents of them and copy files to and from them. Everything I've seen so far…
Richard
  • 1,471
  • 7
  • 23
  • 47
3
votes
0 answers

How to get the WPD device ID on a WPD device connect event?

In WIA (Windows Image Acquisition), we have IWiaDevMgr::RegisterEventCallbackProgram() API to register an application to receive device events. I couldn't find any similar API in WPD (Windows Portable Devices) framework. Is there a way to get WPD…
sabir
  • 76
  • 4
3
votes
1 answer

Programatically identify if a connected device is Android from PC

If I connect an android smart phone through USB cable to a computer, I want to know if the connected device is running Android. Based on that I am going to show some notifications on the computer. How to programmatically identify this from a windows…
Deepak Raj
  • 730
  • 2
  • 9
  • 26
3
votes
0 answers

Access Windows Phone 8 Emulator via MTP

Windows phone devices use the MTP protocol to transfer files to and from the device over USB. I'm working on a program that will access files on the device, but I can't seem to figure out how to connect to the Windows Phone 8 emulator using MTP. I…
Ron Penton
  • 1,511
  • 1
  • 12
  • 24
3
votes
0 answers

WIA versus WPD Digital Camera Image Acquisition and API

We have a Windows Forms app running on XP that uses WIA to retrieve images from digital cameras attached to our company's field technician laptops. As clunky as the COM wrappers and APIs are, they've handled millions of images reliably. Looking now…
kenswdev
  • 253
  • 5
  • 11
2
votes
0 answers

CoCreateInstance returns E_INVALIDARG

I have been working on wrapping WindowsPortableDevice Api for Golang. The c++ code below was working but suddenly is not working. libgowpd.h: #include typedef struct IPortableDeviceManager IPortableDeviceManager; HRESULT…
2
votes
1 answer

shell32 copyhere not working neither in .Net nor powershell script

There is a powershell script to copy files between pc and android via MTP programmatically,see access-file-system-against-mtp-connection,and it works when it running under powershell console,then i have made a script as below: function Usage() { …
coder
  • 163
  • 2
  • 3
  • 12