Offset of application on the external disk when it is connected to the computer



  • Please indicate whether such an annex can be made and placed on an outside disc that was automatically launched when the external disk itself is connected?

    The program itself will count the place on the CD from time to time and send it to the server.

    Similarly, when the HC is switched off safely and withheld, no error must be made.



  • You mean launching a hard drive program with an external disk on the same principle as the antiviruses are testing the film launchers?

    It is then necessary to register its programme as a processor of events related to devices (for further details, MSDN can be read under " https://msdn.microsoft.com/ru-ru/library/windows/desktop/aa363217(v=vs.85).aspx “). On MSDN, there is https://msdn.microsoft.com/ru-ru/library/windows/desktop/aa363432(v=vs.85).aspx registration of this processor. I'll I'll get a short squeeze out of it:

    1. We get GUID, identifiable explosives. HidD_GetHidGuid());
    2. Complete the structure DEV_BROADCAST_DEVICEINTERFACE And we'll give it to function. RegisterDeviceNotification♪ All right, the processor's registered.
    3. Final event processed WM_DEVICECHANGE♪ The information we need is passed through. lParamin the form of DEV_BROADCAST_DEVICEINTERFACEand wParamin the form of an event type code. The code we're interested in. DBT_DEVICEARRIVAL



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2