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

Home NTDEV

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: https://www.osr.com/osr-learning-library/


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 30 January 2023 Live, Online
Developing Minifilters 20 March 2023 Live, Online
Internals & Software Drivers 17 April 2023 Live, Online
Writing WDF Drivers 22 May 2023 Live, Online