Hi,
In your Virtual Cd driver you should call IoCreateDevice function
(DeviceType = FILE_DEVICE_CD_ROM) to create CD-ROM device and realize
dispatch procedures for IRP with major code IRP_MJ_CREATE, IRP_MJ_CLOSE,
IRP_MJ_READ, IRP_MJ_DEVICE_CONTROL.
In dispatch procedure for IRP_MJ_READ you should read data from CD image
file and copy this data to user buffer.
In dispatch procedure for IRP_MJ_DEVICE_CONTROL you should handle CD-ROM's
IOCTL (like IOCTL_CDROM_GET_DRIVE_GEOMETRY, IOCTL_CDROM_READ_TOC,
IOCTL_STORAGE_CHECK_VERIFY, ...)
Best regards,
Fisyuk Victor
EMail/MSN: (e-mail address removed)
Web:
http://rockdbg.siteburg.com