title: Detect if USB is Inserted through Application
body: <p>I want to create an application or modify USB in a way so that, upon insertion into any PC, I can get the information that PC was inserted.</p>
  
  <p>eg. upon insertion, I can read PC name and make an API call with this as post data so I'm able to know that my USB was inserted in some PC. But this should happen right away as USB is read by the machine, so even if the user formats it thereafter, it should not matter.</p>
  
  <p>If it was earlier windows, I could write autorun and that would work. But I want this detection mechanism for Windows 7 and above.</p>
  
  <p>I have done some research on the topic but could not find any reliable content. Some articles were related to USB based hacking attacks by changing wiring (USB hardware, to harm the computer) or something like that. But I totally don't want to do that. Just the detection, that USB was used.</p>