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
1
vote
2 answers

how to get serial number via win32 wpd api

as shown in title, i search on google for this question, but there seems that no way get serial number via WPD(Windows Portable Device) api, and in MSDN, i found the WPD_DEVICE_SERIAL_NUMBER property of Portable Device, can anyone tell me how to get…
Lomuto
  • 45
  • 7
1
vote
1 answer

WPD API - Cannot transfer content from device (SSCCE included)

I need to enumerate the contents of an MTP android device and transfer files from the device to a Windows PC. Following the guide found here Transferring Content from a Device to a PC I attempted to transfer a simple text document to a specified…
mrg95
  • 2,371
  • 11
  • 46
  • 89
1
vote
3 answers

Any Windows API for detecting MTP devices?

I'm looking for detection of MTP devices through Windows API, not just the enumeration of already connected devices.
1
vote
1 answer

Delphi WPD Event Callback - Get Filename

I'm trying to track when a file is created on a WPD-compatible device, such as a digital camera or Android phone. I register to receive events with Advice and my callback is called correctly, but I can't get the file name (perhaps the OBJECT_NAME)…
Delphi.Boy
  • 1,199
  • 4
  • 17
  • 38
1
vote
0 answers

How to use wpd_Api to copy file to a folder location in device

I want to copy files from my pc to my android device using WPD-Api. I am able to copy to root folder but i am not able to copy to folder inside root. I tried to enumerate content in device but that also not working. I tried using link but was not…
vishnu
  • 11
  • 3
1
vote
1 answer

How can Windows Portable Device (WPD) API be used by a program compiled using MingW?

I'm writing a program that automates some tasks that must be done when a removable device is detected. Originally using only file streams. When I realized that not all removable devices can be accessed that way then I started to use SHFileOperation,…
Hatoru Hansou
  • 317
  • 10
  • 22
1
vote
1 answer

Getting Istream failed when trying to transfer content from device in WPDApiSample

i am trying to run the WPDApiSample. When i run the application it prompts me to enter the device number, i enter the device number then it prompts me to enter what i want. I want to send a content from device. so i select option 3. After that it…
Ahsan
  • 87
  • 1
  • 10
1
vote
0 answers

Drag & drop from Windows Portable Device to WPF Application

I'm working on a WPF app which allows user to drag and drop files from Windows Explorer. For normal files, I'm able to access the path using string[] fileNames = (string[])e.Data.GetData(DataFormats.FileDrop, false); But for WPD files, its…
1
vote
1 answer

Web Cam in use notification on Windows

Is there a way for my Windows program to get notifications when a video device is in use. I know how to enumerate the devices using http://msdn.microsoft.com/en-us/library/dd377566(v=vs.85).aspx I can also use ffmpeg to open the video device to…
bir433
  • 61
  • 5
1
vote
1 answer

WPD MTP data stream hanging on Release

I've come across a weird problem when reading data from a MTP-compatible mobile device using the WPD (Windows Portable Devices) API, under Windows 8 (not tried any other Windows versions yet). The symptom is, when calling Release on an IStream…
Jonathan Potter
  • 36,172
  • 4
  • 64
  • 79
1
vote
1 answer

Windows Portable Devices API and WPD_COMMAND_STILL_IMAGE_CAPTURE_INITIATE command

I am currently writing a C# windows forms application for a government agency that needs to collect a photograph of a person standing in front of a counter using a fixed camera. To collect the photograph the application is required to operate a…
user1659191
  • 71
  • 1
  • 4
1
vote
1 answer

How to get IPortableDeviceContent interface for given PIDL

I use SHBrowseForFolder() to select a folder on MTP device. Then I want to copy file from/to there. IPortableDeviceContent interface (from Windows Portable Devices SDK) seems suitable, but how to get it for the object with PIDL, returned from…
ggurov
  • 1,496
  • 2
  • 15
  • 21
1
vote
0 answers

How to set windows portable device file attributes programmatically?

My application needs to access a portable device's contents directly without using the WPD API. Can someone provide some pointers regarding this? I am using dbcc_name as my device interface path. When I tried to call GetFileAttributes(dbcc_name) I…
ext.dev
  • 121
  • 6
1
vote
1 answer

Open WPD Device in Windows Explorer from .NET

I am currently working on an application for managing a WPD device. I want to add an option to open the wpd device in windows explorer to view the saved files. Problem is that I can't find a way to open explorer pointing to the device's "folder". I…
BerndDA
0
votes
1 answer

List of all MTP/PTP cameras with WPD

For my application I need a list of all MTP/PTP cameras connected to the computer. I am generating a list of all WPD devices on the system with the following code: ... hr = pPortableDeviceManager->GetDevices(pPnpDeviceIDs, &cPnPDeviceIDs); if…
Thomas
  • 514
  • 4
  • 14