Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Cool - I'll try those options, as they're probably better defaults given my intentions. Unfortunately, I know my device is there and I'll eventually need read/write access later on (once I inspect the descriptors and have verifed it is infact my device). </p> <p>Which means that my real goal IS to know what's using it, so I can inform the customer/user: "Hey man, 'iexplore.exe' is currently using your SuperWidget device. You'll have to close that down in order to use SuperWidget application." (if not at the application-level, then at least at the phone support level.)</p> <p>I forgot to mention that the windows error reported by GetLastError() is:</p> <blockquote> <p>0x20. The process cannot access the file because it is being used by another process.</p> </blockquote> <p>(So your sharing alternatives will probably get the file open, assuming no FILE_SHARE_NONE on behalf of the other process).</p> <p>[edit]</p> <blockquote> <p>Yeah, it's painful alright. I have seen mice and keyboards get locked by whatever Windows uses to read from them. I've also seen a lot of people have trouble inside a VM like Paralells on OS X, where the HID class driver has the device open exclusively preventing the VM from using standard USB requests.</p> <p>I've seen some code that recreates what <em>ProcessMonitor</em> does. Maybe SysInternals is just electing to ignore device handles, but the same method (or a slight variation) can be employed here to determine the PID.</p> <p><strong>Mike</strong></p> </blockquote>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload