Hi all,
I am writing a kernel mode driver which collects information about PC
hardware. I have the following problem with virtual Daemon manager:
I am obtaining pointer to device object with IoGetDeviceObjectPointer call
(NTDDK or WDM) and then use this pointer in IoBuildDeviceIoControlRequest
and IoCallDriver calls with IOCTL_STORAGE_QUERY_PROPERTY request code.
-
If I have at least one Emulated CD ROM with an Image mounted the system
crashes with 0x26 code (blue screen with CDFS_FILE_SYSTEM error) at cdfs.sys
-
If there is no image mounted then system doesn’t crash but NTSTATUS
result returned by IoCallDriver is 0xC0000185.
The same happens with IOCTL_GET_DEVICE_DESCRIPTOR code and
IoGetDeviceProperty call.
Can anyone help me to understand the problem ?
Thanks.
Michael Videlgauz
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.474 / Virus Database: 272 - Release Date: 18/04/2003
What are you using to emulate the CD-ROM?
-p
This posting is provided “AS IS” with no warranties, and confers no
rights
-----Original Message-----
From: Michael Videlgauz [mailto:xxxxx@safe3w.com]
Sent: Friday, April 25, 2003 7:13 AM
To: NT Developers Interest List
Hi all,
I am writing a kernel mode driver which collects information about PC
hardware. I have the following problem with virtual Daemon manager:
I am obtaining pointer to device object with IoGetDeviceObjectPointer
call (NTDDK or WDM) and then use this pointer in
IoBuildDeviceIoControlRequest and IoCallDriver calls with
IOCTL_STORAGE_QUERY_PROPERTY request code.
-
If I have at least one Emulated CD ROM with an Image mounted the
system crashes with 0x26 code (blue screen with CDFS_FILE_SYSTEM error)
at cdfs.sys
-
If there is no image mounted then system doesn’t crash but NTSTATUS
result returned by IoCallDriver is 0xC0000185.
The same happens with IOCTL_GET_DEVICE_DESCRIPTOR code and
IoGetDeviceProperty call.
Can anyone help me to understand the problem ?
Thanks.
Michael Videlgauz
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.474 / Virus Database: 272 - Release Date: 18/04/2003
You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to xxxxx@lists.osr.com
Hi,Peter Wieland
I think it’s a bug of Virtual CD-ROM driver.
======= 2003-04-25 08:46:00 You wrote=======
What are you using to emulate the CD-ROM?
-p
This posting is provided “AS IS” with no warranties, and confers no
rights
-----Original Message-----
From: Michael Videlgauz [mailto:xxxxx@safe3w.com]
Sent: Friday, April 25, 2003 7:13 AM
To: NT Developers Interest List
Hi all,
I am writing a kernel mode driver which collects information about PC
hardware. I have the following problem with virtual Daemon manager:
I am obtaining pointer to device object with IoGetDeviceObjectPointer
call (NTDDK or WDM) and then use this pointer in
IoBuildDeviceIoControlRequest and IoCallDriver calls with
IOCTL_STORAGE_QUERY_PROPERTY request code.
-
If I have at least one Emulated CD ROM with an Image mounted the
system crashes with 0x26 code (blue screen with CDFS_FILE_SYSTEM error)
at cdfs.sys
-
If there is no image mounted then system doesn’t crash but NTSTATUS
result returned by IoCallDriver is 0xC0000185.
The same happens with IOCTL_GET_DEVICE_DESCRIPTOR code and
IoGetDeviceProperty call.
Can anyone help me to understand the problem ?
Thanks.
Michael Videlgauz
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.474 / Virus Database: 272 - Release Date: 18/04/2003
You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to xxxxx@lists.osr.com
You are currently subscribed to ntdev as: xxxxx@sinfors.com.cn
To unsubscribe send a blank email to xxxxx@lists.osr.com
= = = = = = = = = = = = = = = = = = = =
Crasher Guo
xxxxx@sinfors.com.cn
2003-04-26
> I am writing a kernel mode driver which collects information about
PC
hardware.
For what? is WMI not enough?
Max
As I mentioned, Daemon manager (see http://www.daemon-tools.com/)
What are you using to emulate the CD-ROM?
-p=20
This posting is provided “AS IS” with no warranties, and confers no
rights=20
-----Original Message-----
From: Michael Videlgauz [mailto:xxxxx@safe3w.com]=20
Sent: Friday, April 25, 2003 7:13 AM
To: NT Developers Interest List
Hi all,
I am writing a kernel mode driver which collects information about PC
hardware. I have the following problem with virtual Daemon manager:
I am obtaining pointer to device object with IoGetDeviceObjectPointer
call (NTDDK or WDM) and then use this pointer in
IoBuildDeviceIoControlRequest and IoCallDriver calls with
IOCTL_STORAGE_QUERY_PROPERTY request code.
-
If I have at least one Emulated CD ROM with an Image mounted the
system crashes with 0x26 code (blue screen with CDFS_FILE_SYSTEM error)
at cdfs.sys
-
If there is no image mounted then system doesn’t crash but NTSTATUS
result returned by IoCallDriver is 0xC0000185.
The same happens with IOCTL_GET_DEVICE_DESCRIPTOR code and
IoGetDeviceProperty call.
Can anyone help me to understand the problem ?
Thanks.
Michael Videlgauz
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.474 / Virus Database: 272 - Release Date: 18/04/2003
You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to xxxxx@lists.osr.com
You might be interested to know that it is not. I contacted Virtual CD-ROM
driver autor and found the following:
- There was a bug in my code in the call IoGetDeviceObjectPointer. I used
FILE_READ_DATA instead of FILE_READ_ATTRIBUTES in seconf parameter.
- There is a general problem with cdfs.sys. He got BSOD also with real
physical SCSI CDROM when some CD was inserted and he ran driver before the
change. The problem is not in the IoGetDeviceObjectPointer(,
FILE_READ_DATA, ) itself but in the following IOCTL_SCSI_PASS_THROUGH sent
using that pointer.
Thanks
Michael
Hi,Peter Wieland
I think it’s a bug of Virtual CD-ROM driver.
======= 2003-04-25 08:46:00 You wrote=======
>What are you using to emulate the CD-ROM?
>
>-p
>
>
>This posting is provided “AS IS” with no warranties, and confers no
>rights
>
>
>
>-----Original Message-----
>From: Michael Videlgauz [mailto:xxxxx@safe3w.com]
>Sent: Friday, April 25, 2003 7:13 AM
>To: NT Developers Interest List
>
>Hi all,
>I am writing a kernel mode driver which collects information about PC
>hardware. I have the following problem with virtual Daemon manager:
>
>I am obtaining pointer to device object with IoGetDeviceObjectPointer
>call (NTDDK or WDM) and then use this pointer in
>IoBuildDeviceIoControlRequest and IoCallDriver calls with
>IOCTL_STORAGE_QUERY_PROPERTY request code.
>
>1. If I have at least one Emulated CD ROM with an Image mounted the
>system crashes with 0x26 code (blue screen with CDFS_FILE_SYSTEM error)
>at cdfs.sys
>
>2. If there is no image mounted then system doesn’t crash but NTSTATUS
>result returned by IoCallDriver is 0xC0000185.
>
>The same happens with IOCTL_GET_DEVICE_DESCRIPTOR code and
>IoGetDeviceProperty call.
>
>Can anyone help me to understand the problem ?
>
>Thanks.
>Michael Videlgauz
>—
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.474 / Virus Database: 272 - Release Date: 18/04/2003
>
>
>
>—
>You are currently subscribed to ntdev as: xxxxx@microsoft.com To
>unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
>
>—
>You are currently subscribed to ntdev as: xxxxx@sinfors.com.cn
>To unsubscribe send a blank email to xxxxx@lists.osr.com
= = = = = = = = = = = = = = = = = = = =
Crasher Guo
xxxxx@sinfors.com.cn
2003-04-26
It is. But for the purpose of our entire product this has to be done in
the driver. The explanation will go out of scope of this mailing list
purpose.
Thanks
Michael
> I am writing a kernel mode driver which collects information about
PC
> hardware.
For what? is WMI not enough?
Max
Hi,Michael Videlgauz
It’s great! I think there is another way to solve the same question. You can trace Windows System(use softice …) and see what parameters of IoGetDeviceObjectPointer is used by OS.
======= 2003-04-28 05:26:00 You wrote=======
You might be interested to know that it is not. I contacted Virtual CD-ROM
driver autor and found the following:
- There was a bug in my code in the call IoGetDeviceObjectPointer. I used
FILE_READ_DATA instead of FILE_READ_ATTRIBUTES in seconf parameter.
- There is a general problem with cdfs.sys. He got BSOD also with real
physical SCSI CDROM when some CD was inserted and he ran driver before the
change. The problem is not in the IoGetDeviceObjectPointer(,
FILE_READ_DATA, ) itself but in the following IOCTL_SCSI_PASS_THROUGH sent
using that pointer.
Thanks
Michael
> Hi,Peter Wieland
>
> I think it’s a bug of Virtual CD-ROM driver.
>
> ======= 2003-04-25 08:46:00 You wrote=======
>
> >What are you using to emulate the CD-ROM?
> >
> >-p
> >
> >
> >This posting is provided “AS IS” with no warranties, and confers no
> >rights
> >
> >
> >
> >-----Original Message-----
> >From: Michael Videlgauz [mailto:xxxxx@safe3w.com]
> >Sent: Friday, April 25, 2003 7:13 AM
> >To: NT Developers Interest List
> >
> >Hi all,
> >I am writing a kernel mode driver which collects information about PC
> >hardware. I have the following problem with virtual Daemon manager:
> >
> >I am obtaining pointer to device object with IoGetDeviceObjectPointer
> >call (NTDDK or WDM) and then use this pointer in
> >IoBuildDeviceIoControlRequest and IoCallDriver calls with
> >IOCTL_STORAGE_QUERY_PROPERTY request code.
> >
> >1. If I have at least one Emulated CD ROM with an Image mounted the
> >system crashes with 0x26 code (blue screen with CDFS_FILE_SYSTEM error)
> >at cdfs.sys
> >
> >2. If there is no image mounted then system doesn’t crash but NTSTATUS
> >result returned by IoCallDriver is 0xC0000185.
> >
> >The same happens with IOCTL_GET_DEVICE_DESCRIPTOR code and
> >IoGetDeviceProperty call.
> >
> >Can anyone help me to understand the problem ?
> >
> >Thanks.
> >Michael Videlgauz
> >—
> >Outgoing mail is certified Virus Free.
> >Checked by AVG anti-virus system (http://www.grisoft.com).
> >Version: 6.0.474 / Virus Database: 272 - Release Date: 18/04/2003
> >
> >
> >
> >—
> >You are currently subscribed to ntdev as: xxxxx@microsoft.com To
> >unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> >
> >
> >—
> >You are currently subscribed to ntdev as: xxxxx@sinfors.com.cn
> >To unsubscribe send a blank email to xxxxx@lists.osr.com
>
> = = = = = = = = = = = = = = = = = = = =
>
>
> Crasher Guo
> xxxxx@sinfors.com.cn
> 2003-04-26
You are currently subscribed to ntdev as: xxxxx@sinfors.com.cn
To unsubscribe send a blank email to xxxxx@lists.osr.com
= = = = = = = = = = = = = = = = = = = =
Crasher Guo
xxxxx@sinfors.com.cn
2003-04-29