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
0
votes
1 answer

Windows Portable Device - Notify when a new file is created / copied / deleted

Is it possible to be notified when a file is deleted from / copied to / storage device using (IPortableDeviceEventCallback). So far i've only been notified when the flash drive was disconnected or its name was changed externally by the user. Edit:…
igal k
  • 1,883
  • 2
  • 28
  • 57
0
votes
1 answer

C#: WPD - Downloading a Picture with meta tags

I am running the Portable Device API to automatically get Photos from a connected Smart Phone. I have it all transferring correctly. The code that i use is that Standard DownloadFile() routine: public PortableDownloadInfo…
Tony
  • 53
  • 2
  • 7
0
votes
1 answer

How to get MTP device Available Storage & Storage Capacity using C#?

I am using PortableDevice API to get the MTP Device detection and Device properties. I want to get the MTP Device Storage like capacity of storage and available storage.Here is my sample code for getting the friendly name of the device is, public…
KiShOrE
  • 933
  • 8
  • 25
0
votes
1 answer

Device Interface Events, Get Device Name

Based on this blog post, I've written some code to detect USB devices: PDevBroadcastDeviceInterface = ^DEV_BROADCAST_DEVICEINTERFACE; DEV_BROADCAST_DEVICEINTERFACE = record dbcc_size : DWORD; dbcc_devicetype : DWORD; dbcc_reserved : DWORD; …
Delphi.Boy
  • 1,199
  • 4
  • 17
  • 38
0
votes
1 answer

Accessing MTP vendor extended properties through WPD

I am using Windows Portable Device API to access some MTP devices. I want to read the vendor extended properties from the device, it should look something like this: "microsoft.com/WPDNA" or "microsoft.com/MTPZ" It seems like this should be a quite…
Olppah
  • 790
  • 1
  • 10
  • 21
0
votes
1 answer

WPD C# Windows Phone

I am new to Windows Phone developing and I am trying to copy a file from PC to Windows Phone Documents folder. I read and tried what is written in this article Copy files with WPD to Windows Phone C#. The original article is…
0
votes
1 answer

Why am I not getting the WPD_OBJECT_ORIGINAL_FILE_NAME(i.e the filename) of the object on mtp device

I am using WPD (windows portable devices) API in my windows service, to transfer files from a folder on the mtp device to a designated folder on my hard disk. For testing purposes I create xyzdata.txt file under a folder on the mtp device. So, when…
sp497
  • 2,363
  • 7
  • 25
  • 43
0
votes
1 answer

Storing MSSQL LocalDB for Application

I have been using a LocalDB.mdf file to build my application, but now need to use it in production and create an installable application. After research, it seems the best place to store such a file is in the /Appdata/Local/ folder. I intend to…
Dan Sewell
  • 1,278
  • 4
  • 18
  • 45
0
votes
2 answers

Determine WPD device type in Delphi

I'm trying to determine what type my WPD device is in Delphi. In my application I need to know if the device is a Phone or Camera or what ever it is. According to this MSDN article the WPD Device Type is a WPD Device Property which can be read by…
Aid Vllasaliu
  • 85
  • 2
  • 11
0
votes
0 answers

WPD MTP stream hangs on commit

I am using the following code to copy a file wrapped by a FileInfo object to an MTP device using the Windows Portable Device API: public static void CopyFileToDevice(PortableDeviceFolder parent, string name, FileInfo file) { …
NinjaTuna
  • 41
  • 5
0
votes
1 answer

WPD Service api implimentation (Status Service) to get free space on WPD device

I want to get the free space on the WPD device. I am trying to implement the WPDServiceApi. I am currently implementing the status service of WPD services. i picked up the the code samples from Windows7DEK. There are lots of type mismatches coming…
Ahsan
  • 87
  • 1
  • 10
0
votes
1 answer

What are the requirements(pre_installations) of a windows portable devices application to run on windows?

Actually i have written a dll using WPD api to manipulate windows phone. Then i imported this dll in a java project using jna. All works fine on the system having complete c++ developement environment and Window development kit installed on it. But…
Ahsan
  • 87
  • 1
  • 10
0
votes
0 answers

Access Background image in phones via USB connection

I'm developing a PC c++ application running on windows. The application shall communicate with a phone connected thru USB, using MTP. I want to specifically access the background image in phone. Is there a way to do so? Is there a specific way to…
0
votes
1 answer

How to set single instance of the portable device detection

I tried to catch the event when a portable device is inserted and was able to do so. My problem is that it called two events of the insertion. Here is my code: private void DeviceInsertedEvent(object sender, EventArrivedEventArgs e) { …
Ken Zhang
  • 21
  • 7
0
votes
1 answer

Portable device detection using C#

I have a problem detecting portable devices, specifically samsung phone or iphone. I need to develop a program that will start once the detection of a portable plug-in and stop, once plugged out. I've been trying this code, but only works with usb…
Ken Zhang
  • 21
  • 7