What is IOCTL 0x4D0004?

Hello all.

We happen to write a pseudo-disk driver and get the ioctl code 0x4D0004
while trying to mount it. What is that? Neither Google, nor anything
else I could thing of could provide me with any info on it…

Below comes some debugging info we get on this:

WPDSK: ENTER DEVICE_CONTROL.UNKNOWN by KERNEL
WPDSK: IOCTL=0x4D0004, Name=UNKNOWN
WPDSK: Unknown IOCTL Code: 0x4d0004
WPDSK: LEAVE DEVICE_CONTROL.UNKNOWN (STATUS_INVALID_DEVICE_REQUEST
0xc0000010)
CreateTargetEntry() RegisterDeviceNotification() failed. Win32 Error:1066
DmServerServiceHandlerEx() CreateTargetEntry() failed: 1066.

Can anyone please give me any clue on what to do with it?


Andrey.

Use the OSR Ioctl decoder and you will see the device type is 0x4d which
happens to be 'M" which happens to indicate the mount manager.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
http://www.windrvr.com
Remove StopSpam from the email to reply

“Andrey Subbotin” wrote in message news:xxxxx@ntdev…
> Hello all.
>
> We happen to write a pseudo-disk driver and get the ioctl code 0x4D0004
> while trying to mount it. What is that? Neither Google, nor anything else
> I could thing of could provide me with any info on it…
>
> Below comes some debugging info we get on this:
>
> WPDSK: ENTER DEVICE_CONTROL.UNKNOWN by KERNEL
> WPDSK: IOCTL=0x4D0004, Name=UNKNOWN
> WPDSK: Unknown IOCTL Code: 0x4d0004
> WPDSK: LEAVE DEVICE_CONTROL.UNKNOWN (STATUS_INVALID_DEVICE_REQUEST
> 0xc0000010)
> CreateTargetEntry() RegisterDeviceNotification() failed. Win32 Error:1066
> DmServerServiceHandlerEx() CreateTargetEntry() failed: 1066.
>
> Can anyone please give me any clue on what to do with it?
>
> –
> Andrey.
>

Looks to me like:

#define IOCTL_MOUNTDEV_UNIQUE_ID_CHANGE_NOTIFY
CTL_CODE(MOUNTDEVCONTROLTYPE, 1, METHOD_BUFFERED, FILE_READ_ACCESS |
FILE_WRITE_ACCESS)

From mountdev.h

(To find this I used the osronline ioctl decoder - any other decoder
will work as well if you have one - to get (0x4d, 1, METHOD_BUFFERED,
FILE_READ_ACCESS) and then remembered that some drivers use an ASCII
character for their device type, looked that up in an ASCII table,
determined it was an ‘M’ and thus knew this was mount manager. From
there it was a matter at looking at the two relevant header files.)

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Andrey Subbotin
Sent: Saturday, July 15, 2006 7:12 AM
To: ntdev redirect
Subject: [ntdev] What is IOCTL 0x4D0004?

Hello all.

We happen to write a pseudo-disk driver and get the ioctl code 0x4D0004
while trying to mount it. What is that? Neither Google, nor anything
else I could thing of could provide me with any info on it…

Below comes some debugging info we get on this:

WPDSK: ENTER DEVICE_CONTROL.UNKNOWN by KERNEL
WPDSK: IOCTL=0x4D0004, Name=UNKNOWN
WPDSK: Unknown IOCTL Code: 0x4d0004
WPDSK: LEAVE DEVICE_CONTROL.UNKNOWN (STATUS_INVALID_DEVICE_REQUEST
0xc0000010)
CreateTargetEntry() RegisterDeviceNotification() failed. Win32
Error:1066
DmServerServiceHandlerEx() CreateTargetEntry() failed: 1066.

Can anyone please give me any clue on what to do with it?


Andrey.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer