The last time I did any windows GUI programming was with Petzold's book in hand, before there were any class libraries or anything like that. I'm rewriting a simple C++ GUI application as a cmd line app and it works except for one thing. The GUI version registers for callbacks anytime there's a USB event, such as a connect or disconnect. This is done via the API routine RegisterDeviceNotification(), which results in device messages being added to a windows message queue. cmd line apps don't have windows or message queues, does anyone know what the equivalent functionality would be for a cmd line app? thanks --steve ------------------- Steve Ravet ARM steve.ravet@arm.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist