主线程忙时,不会收到WM_DEVICECHANGE通知
问题描述:
我已经在我的应用程序中处理了WM_DEVICECHANGE通知
I have handled WM_DEVICECHANGE notification in my App
当插入/删除DVD时,通知已成功收到。
When DVD is inserted/removed notifications are successfully recieved.
假设我的主要内容弹出光盘时线程正忙。然后没有收到WM_DEVICECHANGE通知。
Suppose my main thread is busy while i eject the disc. Then WM_DEVICECHANGE notification is not recieved.
任何想法??
答
>假设我的弹出光盘时主线程正忙。然后没有收到WM_DEVICECHANGE通知。
>Suppose my main thread is busy while i eject the disc. Then WM_DEVICECHANGE notification is not recieved.
当它不再忙时你没有收到它吗?
Do you not receive it when it's no longer busy?
把繁忙的工作放在工作线程中离开您的UI线程响应。
Put the busy work in a work thread to leave your UI thread responsive.
Dave