close
RegisterDeviceNotification
先用這個Enable Device Plug In Event

然後當裝置插入時(USB或其他種類皆可)
就會收到WM_DEVICECHANGE這個Message

在MFC就是ON_WM_DEVICECHANGE
此Message還有許多細項(MSDN有介紹)。

程式結束前要執行
UnregisterDeviceNotification

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 pipii 的頭像
    pipii

    Live Pipii

    pipii 發表在 痞客邦 留言(0) 人氣()