VPB's deviceobject pointer & mount a virtual CD-ROM

Hi All,

I write a virtual CD-ROM supported by an image file via responsing
IOCTL_CDROM_… series in NT 4.0. But so surprise to see I cannot mount the
CD-ROM. VPB’s deviceobject pointer is always zero. IRP_MJ_READ is never
called. I notice that IOCTL_CDROM_CHECK_VERIFY has many info about media
change. But the DDK document is so confusing: VPB_MOUNTED,
STATUS_VERIFY_REQUIRED, DO_VERIFY_VOLUME, etc. I cannot make it clear.

Can anyone give me a clue? …

Thanks a lot.

Jeffrey Ren
b???.???????&?v?'?ׯj?.n?Qyȩf??]?:.?˛???m??֛???zf???%y?ޞ?^?˛??^r*Lzfެ?…???l??ܢ

Can u check the Return Value from ZwCreateFile. So that u can get some idea.

Regards,
Satish K.S

now i need to open this pipe and write to it from the kernel mode driver ,
i am using ZwcreateFile , this is the code which i have written in the kernel
mode

status = ZwCreateFile( &pipeHandle , GENERIC_WRITE , &objattr , &iob , 0 ,
FILE_ATTRIBUTE_NORMAL ,
FILE_SHARE_READ|FILE_SHARE_WRITE , FILE_OPEN_IF ,
FILE_WRITE_THROUGH , eabuffer , 0 );

this call fails.


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com