IoSetDeviceToVerify routine

The IoSetDeviceToVerify routine specifies a device object to be verified. The specified device object represents a removable media device.

Syntax


VOID IoSetDeviceToVerify(
  _In_     PETHREAD       Thread,
  _In_opt_ PDEVICE_OBJECT DeviceObject
);

Parameters

Thread [in]

A pointer to the thread.

DeviceObject [in, optional]

A pointer to the device object for a removable-media device. Can be NULL.

Return value

None

Remarks

A file system calls IoSetDeviceToVerify to indicate that a given device object, representing a removable-media device, needs to be verified.

A file system must verify a volume when it receives notification from an underlying removable-media device driver that the media appears to have changed since the last access to the target device.

Before using IoSetDeviceToVerify and IoVerifyVolume, driver writers are strongly encouraged to study the way these routines are used in the FASTFAT sample.

For more information about removable-media devices, see Supporting Removable Media.

Requirements

Target platform

Universal

Header

Ntifs.h (include Ntifs.h)

Library

NtosKrnl.lib

DLL

NtosKrnl.exe

IRQL

<= DISPATCH_LEVEL

DDI compliance rules

IrqlIoDispatch

See also

IoGetDeviceToVerify
IRP
PsGetCurrentThread
IoVerifyVolume

 

 

Send comments about this topic to Microsoft

Show: