Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

how to notify windows of disk size change

James_HarperJames_Harper Member Posts: 1,615
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

Comments

  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    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
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
Developing Minifilters 29 July 2019 OSR Seminar Space
Writing WDF Drivers 23 Sept 2019 OSR Seminar Space
Kernel Debugging 21 Oct 2019 OSR Seminar Space
Internals & Software Drivers 18 Nov 2019 Dulles, VA