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
14
votes
6 answers

Enumerating Windows Portable Devices in C#

I am attempting to enumerate connected portable devices on Windows using the Windows Portable Devices API and the PortableDeviceManager provided by this API. I have implemented enumeration of device IDs following the MSDN documentation link and…
Jaran
  • 313
  • 1
  • 2
  • 10
12
votes
2 answers

WPD API Detect if Device is a Phone?

EDIT: Full source code was requested. Below is a barebones implementation in order to replicate the bug. Content enumeration is removed, however the crash ocurrs on the first object call anyway. In this case, the WPD_DEVICE_OBJECT_ID object. LINK TO…
mrg95
  • 2,371
  • 11
  • 46
  • 89
12
votes
2 answers

Write Files to WPD device via MTP C#/VB.net

I would like to write an application that will copy MP3 files to a SanDisk Sansa M240. The SanDisk doesn't have a drive letter and uses MTP for file transfer. I stumbled through the sample of connecting to the device at :…
Matt
  • 652
  • 1
  • 7
  • 18
11
votes
1 answer

WPD Object Filename Truncated at '.'

In my project, I'm using the Windows Portable Device (WPD) API to enumerate the contents of a mobile device. WPD API Enumeration Guide. I'm able to enumerate over each object and view their properties as shown in the API programming guide. WPD API…
mrg95
  • 2,371
  • 11
  • 46
  • 89
10
votes
3 answers

Including Native Library in Netbeans

I am trying to read portable devices from java signed applet.... I found a jmtp library on http://code.google.com/p/jmtp/w/list to get access to portable devices but when i run it in netbeans it gives error Exception in thread "main"…
Umair Aziz
  • 1,518
  • 1
  • 19
  • 29
9
votes
1 answer

How to get notifications for File Changes on CD / DVD drive?

I am new to C# and have to develop a Windows Form application in C#. This application should track the following things. Monitor the CD / DVD drives both external and internal. Monitor the files which are created, modified and deleted on the CD/DVD…
Kunal Jha
  • 2,102
  • 4
  • 24
  • 34
8
votes
2 answers

Transferring files from Android WPD device to PC

My Android app produces some files that I need to synchronize with my main PC program and the other way around. The common way I do this is using a FTP account where both my Android app and my PC program gets the latest version of the files, and…
Daniel
  • 924
  • 1
  • 14
  • 31
8
votes
5 answers

Snapping pictures from Windows C# Canon SDK vs PTP or MTP

I am hoping to receive some general guidance on accomplishing a seemingly simple goal. I have a DSLR camera (Canon EOS 50D) and need to write an application that will tell the camera to take a picture. I also need to transfer the picture to the…
Nate
  • 5,237
  • 7
  • 42
  • 52
8
votes
3 answers

WinAPI calls to access USB storage which has no drive letter?

I've noticed, that some USB storage devices don't register in Windows as regular drives, in that they don't even get assigned a drive letter. Therefore, I can't apparently access them using the standard file operations C API. What are the WinAPI…
akavel
  • 4,789
  • 1
  • 35
  • 66
6
votes
1 answer

Windows MTP/WPD communication with Android device

I'm developing a PC c++ application running on windows. The application shall communicate with an android phone connected thru USB, using MTP. The idée is to not mount the Storage Card. What I have found is that Windows have something they call WPD…
giZm0
  • 1,481
  • 21
  • 37
5
votes
3 answers

System.AccessViolationException when copying data to portable device after installing windows 10 creators update 1703

I am attempting to transfer content to portable device using this code snippet IPortableDeviceValues values = GetRequiredPropertiesForContentType(fileName, parentObjectId); IStream tempStream; uint…
Tatiana
  • 51
  • 1
5
votes
2 answers

C# get portable devices connected to PC

I am trying to get all usb devices(including portable devices) on Windows 7 now I searched all over and didnt find a good answer. I tried this code: static void Main(string[] args) { // // Get an instance of the device manager // …
bananaistrong
  • 51
  • 1
  • 5
5
votes
1 answer

What is the File path to specify to transfer a file from Android to Windows PC?

I am going to create an c# windows application for transfering image file from an android phone to my Wondows PC - when I connect phone with my PC(using data cable). When I given the path "Computer/Nuxes5/..." in C# for accessing files from mobile,…
Sajith A.K.
  • 716
  • 9
  • 21
5
votes
1 answer

Desktop java app copy and transfer android data via USB

I have a desktop java app, and also an android app. Two app work together. The user in desktop app have a button to launch the transfer between device data app to computer app and vice versa. So I need to transfer data with a simple USB cable, and…
Slasch
  • 275
  • 1
  • 6
  • 20
4
votes
2 answers

Flush MTP connection with Android tablet?

I connect a Samsung Galaxy Android tablet with a USB cable to computer running Windows 7. It connects using MTP. Step 1. Copy my SQLite database from Windows 7 to tablet via Windows Explorer. Step 2. Open it on the tablet (which adds the…
mhenry1384
  • 7,538
  • 5
  • 55
  • 74
1
2 3 4 5 6 7