0

I'm trying to detect the event when a FireWire cable is plugged into the FireWire port of the PC withing MFC C++ app. I would also like to trigger this even myself as the FireWire connections drops and never is rediscovered withing unplugging the cable and plugging it back in.

Anyone have any experience trying to programmaticaly simulate a unplug-replug event?

eudoxos
  • 18,545
  • 10
  • 61
  • 110

1 Answers1

1

You can register yourself to receive device arrival messages. See the help for RegisterDeviceNotification to find an example on how to register yourself.

You can trigger a bus reset notification on the firewire bus, but I don't know if you can do this from user mode, without the help of a kernel mode module.

Christopher
  • 8,912
  • 3
  • 33
  • 38