Supported filter contract for first-access USB denial and connection-scoped revocation
What documented filter contract, if any, can enforce both first-access denial and connection-scoped revocation on Windows 11 Home x64?
The case is limited to an inbox USBSTOR Bulk-Only Transport device with one fixed-media LUN and one basic NTFS volume. Windows boots from internal storage and does not depend on the USB device for paging, hibernation, crash dumps or recovery. The device may be connected before boot.
The design needs to keep ordinary user file and raw volume access closed while NTFS performs any I/O necessary for mount. It also needs to invalidate a previous grant before a new read or write can use it after the physical connection changes. This includes a new request on a previously opened file handle, including reads served by the Windows file cache. I/O already admitted before revocation and access to pre-existing resident memory mappings are outside this question.
We reviewed the WDK documentation on PnP start, Filter Manager automatic attachment and FltGetDiskDeviceObject. Those references describe when device interfaces become available, when the automatic attachment callback runs and how to obtain a referenced storage object. Which documented callback, ordering or lifetime guarantee covers the actual NTFS mount I/O and binds an admission to its physical connection, including surprise removal and reconnect? A reference to a supported contract or a statement that the guarantee is unavailable would help us choose the correct design.