[an error occurred while processing this directive]
Ответ:
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)

миниатюрный аудио-видеорекордер mAVR

Отправлено fikus 06 февраля 2006 г. 16:28
В ответ на: Хрестоматийный метод- мониторить события отправлено <font color=gray>fikus</font> 06 февраля 2006 г. 16:25

Detecting USB devices inserted/removed from a software level[back to top]
QUESTION
Is there any way to detect the insertion/removal of a USB device programmatically in Windows 9x/NT, (e.g., through a callback mechanism)?

ANSWER
Yes. There is a means, but it is not a simple mechanism. Currently an app note to describe this process is being developed by Kosta Koeman along with code. The basic idea is that your application must monitor for a WM_DEVICECHANGE message with wParam == DBT_DEVNODES_CHANGED. You then need to check the number of your devices. If the number has changed, then you need to add an instance or check which instance needs to be removed.

Составить ответ  |||  Конференция  |||  Архив

Ответы


Отправка ответа

Имя (обязательно): 
Пароль: 
E-mail: 
NoIX ключ Запомнить

Тема (обязательно):
Сообщение:

Ссылка на URL: 
Название ссылки: 

URL изображения: 


Rambler's Top100 Рейтинг@Mail.ru
Перейти к списку ответов  |||  Конференция  |||  Архив  |||  Главная страница  |||  Содержание

E-mail: info@telesys.ru