how to notify windows of disk size change

How should windows be notified about a disk size change?

I’m doing BusChangeDetected but based on the requested SRB’s after I do that I think Windows isn’t reading the new device size. If I rescan disks in disk management it detects the change there but I’m wondering if there is a better way?

Thanks

James

Try unit_attention capacity_data_has_changed (ASC/ASCQ 2a09) for the specific device.

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of James Harper
Sent: Saturday, March 02, 2013 5:11 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] how to notify windows of disk size change

How should windows be notified about a disk size change?

I’m doing BusChangeDetected but based on the requested SRB’s after I do that I think Windows isn’t reading the new device size. If I rescan disks in disk management it detects the change there but I’m wondering if there is a better way?

Thanks

James


NTDEV is sponsored by OSR

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer