Hi ..
this is my first post here...
i have been trying to solve this problem for two days ..but no luck..
here is my problemm...
I am using win32..
I can able to get notified on new device insertion and removal using DBT_DEVTYP_DEVICEINTERFACE
if ( DBT_DEVICEARRIVAL == wParam || DBT_DEVICEREMOVECOMPLETE == wParam )
{
PDEV_BROADCAST_HDR pHdr = ( PDEV_BROADCAST_HDR )lParam;
PDEV_BROADCAST_DEVICEINTERFACE pDevInf;
PDEV_BROADCAST_VOLUME pDevVolume = reinterpret_cast<PDEV_BROADCAST_VOLUME>(lParam);
switch( pHdr->dbch_devicetype )
{
case DBT_DEVTYP_DEVICEINTERFACE:
pDevInf = ( PDEV_BROADCAST_DEVICEINTERFACE )pHdr;
updateDevice( pDevInf, wParam);
break;
}
}
anybody please tell me how can i get the drive information ( G:/ ) for the above notication
any help would be greatly appreciated