Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results


Before Posting...

Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging

The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.

Check out The OSR Learning Library at:

Communicating with PTP/USB (MTP)

petabytepetabyte Member Posts: 1

For the past few months I've made a few attempts to communicate with my PTP cameras with Windows, and I haven't gotten very far.

  • I was able to successfully use WIA, but Wia scans the entire SD card and builds a tree of file handles before I can do anything. This takes around 5 minutes, so I had to abandon the code.
  • I have working SetupAPI code that finds my camera with GUID {6bdd1fc6-810f-11d0-bec7-08002be2092f}
  • With that code, I tried DeviceIoControl, but I get Error 1 (ERROR_INVALID_FUNCTION) when trying to get the interface descriptor
  • I also tried WinUsb_Initialize with my SetupAPI code, and it also returned Error 1
  • My goal is to get PTP working like I have on Linux, and cross compile from Linux. I haven't tried everything, as I'm mostly working on what I can find in the MinGW headers.
  • I apologize if I'm ignorant, I do mostly embedded programming on Linux.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Kernel Debugging 13-17 May 2024 Live, Online
Developing Minifilters 1-5 Apr 2024 Live, Online
Internals & Software Drivers 11-15 Mar 2024 Live, Online
Writing WDF Drivers 20-24 May 2024 Live, Online