Hi ,
I used
RegisterDeviceNotification , but i don't know which GUID i should use in
dbcc_classguid to receive the notification of new arrival volumes!
I also used
DEV_BROADCAST_VOLUME as the second parameter of
RegisterDeviceNotification ,
and set its filed as follow :
.dbcv_size = sizeof(DEV_BROADCAST_VOLUME );
.dbcv_devicetype = DBT_DEVTYP_VOLUME;
.dbcv_unitmask = 0x0001 ;
.dbcv_flags = DBTF_MEDIA ;
but it failed !
TNX