Reseting a DEVICEOBJECT

Please
What function do i use for resetting a deviceobject which is a disk file system driver ?
instead using IoDeleteDevice and IoCreateDevice ???
Why ??
I want use one call IoCreateDevice (and a other IoCreateDevice for VPB disk) and using IoDeleteDevice only when i unload my driver.

Thank

What do you mean by “resetting”?

-scott
OSR
@OSRDrivers

wrote in message news:xxxxx@ntfsd…

Please
What function do i use for resetting a deviceobject which is a disk file
system driver ?
instead using IoDeleteDevice and IoCreateDevice ???
Why ??
I want use one call IoCreateDevice (and a other IoCreateDevice for VPB disk)
and using IoDeleteDevice only when i unload my driver.

Thank

Reseting = request to a windows kernel for re checking drive for recheck (IOCTL_VERIFY … IRP_MJ_READ … IRP_MN_MOUNT_VOLUME)

You need to and dismount the volume, see FSCTL_DISMOUNT_VOLUME. Once the
volume is dismounted the I/O Manager will trigger mount processing again on
the next open.

-scott
OSR
@OSRDrivers

wrote in message news:xxxxx@ntfsd…

Reseting = request to a windows kernel for re checking drive for recheck
(IOCTL_VERIFY … IRP_MJ_READ … IRP_MN_MOUNT_VOLUME)

OK i will test after