Troubleshooting with IoCreateDevice , devicetype = FILE_DEVICE_DISK

Hello,

When I mount a RAW virtual disk with IoCreateDevice with DeviceType = FILE_DEVICE_DISK.

The function and IRP IRP_MJ_QUERY_INFORMATION IRP_MJ_DIRECTORY_CONTROL is called in my kernel code , why ???

It sees it as a disk file system, and I want to take it as a RAW disk.

Thank you for solution.

solved with status=IoCreateDevice(DriverObject,
sizeof (TPARAM_RAWDISK),
&dn,
FILE_DEVICE_DISK,
FILE_REMOVABLE_MEDIA,
FALSE,
&gvd);