What is IOCTL 0x4d0008?

The OS is w2k.

The IOCTL is sent to the disk device object by some upper code, maybe NTFS.
I cannot find FILE_DEVICE_xxx name for 0x4d in NTIFS.H.

regards,
Max


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

My guess is IOCTL_MOUNTDEV_QUERY_DEVICE_NAME (too lazy to check it). Examine
mountmgr.h:

#define MOUNTDEVCONTROLTYPE ((ULONG) ‘M’)

Best regards,

Michal Vodicka
Veridicom
(RKK - Skytale)
[WWW: http://www.veridicom.com , http://www.skytale.com]


From: Maxim S. Shatskih[SMTP:xxxxx@storagecraft.com]
Reply To: File Systems Developers
Sent: Thursday, October 11, 2001 4:35 AM
To: File Systems Developers
Subject: [ntfsd] What is IOCTL 0x4d0008?

The OS is w2k.

The IOCTL is sent to the disk device object by some upper code, maybe
NTFS.
I cannot find FILE_DEVICE_xxx name for 0x4d in NTIFS.H.

regards,
Max


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


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

The IOCTL you referred to is: IOCTL_MOUNTDEV_QUERY_DEVICE_NAME
It’s defined in “mountmgr.h”
#define IOCTL_MOUNTDEV_QUERY_DEVICE_NAME CTL_CODE(MOUNTDEVCONTROLTYPE, 2, METHOD_BUFFERED, FILE_ANY_ACCESS)

Niraj

-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Wednesday, October 10, 2001 7:36 PM
To: File Systems Developers
Subject: [ntfsd] What is IOCTL 0x4d0008?

The OS is w2k.

The IOCTL is sent to the disk device object by some upper code, maybe NTFS.
I cannot find FILE_DEVICE_xxx name for 0x4d in NTIFS.H.

regards,
Max


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


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

Thanks! It is.

Very good from MS side to define the FILE_DEVICE_xxx value as a character literal.
:frowning:

Max

----- Original Message -----
From: “Vodicka, Michal”
To: “File Systems Developers”
Sent: Thursday, October 11, 2001 6:45 AM
Subject: [ntfsd] RE: What is IOCTL 0x4d0008?

> My guess is IOCTL_MOUNTDEV_QUERY_DEVICE_NAME (too lazy to check it). Examine
> mountmgr.h:
>
> #define MOUNTDEVCONTROLTYPE ((ULONG) ‘M’)
>
> Best regards,
>
> Michal Vodicka
> Veridicom
> (RKK - Skytale)
> [WWW: http://www.veridicom.com , http://www.skytale.com]
>
>
>
> > ----------
> > From: Maxim S. Shatskih[SMTP:xxxxx@storagecraft.com]
> > Reply To: File Systems Developers
> > Sent: Thursday, October 11, 2001 4:35 AM
> > To: File Systems Developers
> > Subject: [ntfsd] What is IOCTL 0x4d0008?
> >
> > The OS is w2k.
> >
> > The IOCTL is sent to the disk device object by some upper code, maybe
> > NTFS.
> > I cannot find FILE_DEVICE_xxx name for 0x4d in NTIFS.H.
> >
> > regards,
> > Max
> >
> >
> >
> > —
> > You are currently subscribed to ntfsd as: xxxxx@rkk.cz
> > To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> >
>
> —
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


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

> ----------

From: Maxim S. Shatskih[SMTP:xxxxx@storagecraft.com]
Reply To: File Systems Developers
Sent: Thursday, October 11, 2001 7:30 AM
To: File Systems Developers
Subject: [ntfsd] RE: What is IOCTL 0x4d0008?

Very good from MS side to define the FILE_DEVICE_xxx value as a character
literal.
:frowning:

I was also very impressed when saw it the first time. How smart!
Unfortunately, this isn’t the only example. It would be nice to have an
utility which would scan all DDK headers for CTL_CODE macro, resolve all
FILE_DEVICE_xxx and create a database for all IOCTLs and decode given IOCTL
value (OSR web utility is IMHO outdated). Unfortunately, I don’t have time
to write it. Anybody else?

Best regards,

Michal Vodicka
Veridicom
(RKK - Skytale)
[WWW: http://www.veridicom.com , http://www.skytale.com]


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

On 10/11/01, ““Maxim S. Shatskih” ” wrote:
> Thanks! It is.
>
> Very good from MS side to define the FILE_DEVICE_xxx value as a character literal.
> :frowning:
>
> Max
>

As with many things, Microsoft did not invent this scheme for IOCTL codes.
The same trick has been used in various UNIX operating systems for years,
certainly before NT was developed. Here’s an example from my Solaris box:

#define FIONBIO _IOW(‘f’, 126, int) /* set/clear non-blocking I/O */

Most IOCTLs dealing with file I/O have an ‘f’ character as part of the
code. IOCTLs dealing with terminal I/O have a ‘t’.

Carl Appellof


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