RE: Different Reparse FSCTL codes in ntifs.h and wini octl.h

I’ll get this issue documented…
Ravi

-----Original Message-----
From: Pashupati Kumar [mailto:xxxxx@legato.com]
Sent: Thursday, February 14, 2002 2:50 PM
To: File Systems Developers
Subject: [ntfsd] RE: Different Reparse FSCTL codes in ntifs.h and wini octl.h

yeah FSCTL codes are different and i have vc6.0 sp3

-----Original Message-----
From: Tony Mason [mailto:xxxxx@osr.com]
Sent: Thursday, February 14, 2002 2:41 PM
To: File Systems Developers
Subject: [ntfsd] RE: Different Reparse FSCTL codes in ntifs.h and wini octl.h

Ravi,

I don’t know about Kevin, but it is that way in my version of winioctl.h as well - the one shipped with VS 6.0. Haven’t checked VS.NET yet…

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
?
Hope to see you at the next OSR file systems class March 11, 2002 in Boston!

-----Original Message-----
From: Ravisankar Pudipeddi [mailto:xxxxx@windows.microsoft.com]
Sent: Thursday, February 14, 2002 5:26 PM
To: File Systems Developers
Subject: [ntfsd] RE: Different Reparse FSCTL codes in ntifs.h and winioctl.h

Where did you get the winioctl.h from? I am looking at Win2K RTM sources and it’s defined right
(FILE_SPECIAL_ACCESS)

Ravi

-----Original Message-----
From: Kevin Goodwin [mailto:kevin_goodwin@hp.com]
Sent: Thursday, February 14, 2002 9:22 AM
To: File Systems Developers
Subject: [ntfsd] Different Reparse FSCTL codes in ntifs.h and winioctl.h

Below are the FSCTL codes for reparse points from both ntifs.h and
winioctl.h. (Notice one uses FILE_SPECIAL_ACCESS and the other uses
FILE_WRITE_DATA.) Sending a DeviceIoControl with FSCTL_SET_REPARSE_POINT
from user mode was failing and not hitting my filter driver in kernel mode.
After some ugly debugging, I came to find out that Microsoft didn’t define
the ctl codes the same in their headers. Thanks MS!

From ntifs.h
#define FSCTL_SET_REPARSE_POINT CTL_CODE(FILE_DEVICE_FILE_SYSTEM,
41, METHOD_BUFFERED, FILE_SPECIAL_ACCESS) // REPARSE_DATA_BUFFER, #define FSCTL_GET_REPARSE_POINT CTL_CODE(FILE_DEVICE_FILE_SYSTEM,
42, METHOD_BUFFERED, FILE_ANY_ACCESS) // REPARSE_DATA_BUFFER #define FSCTL_DELETE_REPARSE_POINT CTL_CODE(FILE_DEVICE_FILE_SYSTEM,
43, METHOD_BUFFERED, FILE_SPECIAL_ACCESS) // REPARSE_DATA_BUFFER,

From winioctl.h
#define FSCTL_SET_REPARSE_POINT CTL_CODE(FILE_DEVICE_FILE_SYSTEM,
41, METHOD_BUFFERED, FILE_WRITE_DATA) // REPARSE_DATA_BUFFER, #define FSCTL_GET_REPARSE_POINT CTL_CODE(FILE_DEVICE_FILE_SYSTEM,
42, METHOD_BUFFERED, FILE_ANY_ACCESS) // , REPARSE_DATA_BUFFER #define FSCTL_DELETE_REPARSE_POINT CTL_CODE(FILE_DEVICE_FILE_SYSTEM,
43, METHOD_BUFFERED, FILE_WRITE_DATA) // REPARSE_DATA_BUFFER,


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


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


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


You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.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

For serious work, you shouldn’t use the h files and libraries that come
with Developer Studio. The same files are in the Platform SDK, and they
are much more current.

I could be wrong, but I believe Developer Studio 6 shipped quite some
time before Windows 2000.

  • Dan.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
Ravisankar Pudipeddi
Sent: Thursday, February 14, 2002 3:58 PM
To: File Systems Developers
Subject: [ntfsd] RE: Different Reparse FSCTL codes in ntifs.h
and wini octl.h

I’ll get this issue documented…
Ravi

-----Original Message-----
From: Pashupati Kumar [mailto:xxxxx@legato.com]
Sent: Thursday, February 14, 2002 2:50 PM
To: File Systems Developers
Subject: [ntfsd] RE: Different Reparse FSCTL codes in ntifs.h
and wini octl.h

yeah FSCTL codes are different and i have vc6.0 sp3

-----Original Message-----
From: Tony Mason [mailto:xxxxx@osr.com]
Sent: Thursday, February 14, 2002 2:41 PM
To: File Systems Developers
Subject: [ntfsd] RE: Different Reparse FSCTL codes in ntifs.h
and wini octl.h

Ravi,

I don’t know about Kevin, but it is that way in my version of
winioctl.h as well - the one shipped with VS 6.0. Haven’t
checked VS.NET yet…

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
?
Hope to see you at the next OSR file systems class March 11,
2002 in Boston!

-----Original Message-----
From: Ravisankar Pudipeddi [mailto:xxxxx@windows.microsoft.com]
Sent: Thursday, February 14, 2002 5:26 PM
To: File Systems Developers
Subject: [ntfsd] RE: Different Reparse FSCTL codes in ntifs.h
and winioctl.h

Where did you get the winioctl.h from? I am looking at Win2K
RTM sources and it’s defined right
(FILE_SPECIAL_ACCESS)

Ravi

-----Original Message-----
From: Kevin Goodwin [mailto:kevin_goodwin@hp.com]
Sent: Thursday, February 14, 2002 9:22 AM
To: File Systems Developers
Subject: [ntfsd] Different Reparse FSCTL codes in ntifs.h and
winioctl.h

Below are the FSCTL codes for reparse points from both ntifs.h and
winioctl.h. (Notice one uses FILE_SPECIAL_ACCESS and the other uses
FILE_WRITE_DATA.) Sending a DeviceIoControl with
FSCTL_SET_REPARSE_POINT
from user mode was failing and not hitting my filter driver
in kernel mode.
After some ugly debugging, I came to find out that Microsoft
didn’t define
the ctl codes the same in their headers. Thanks MS!

From ntifs.h
#define FSCTL_SET_REPARSE_POINT CTL_CODE(FILE_DEVICE_FILE_SYSTEM,
41, METHOD_BUFFERED, FILE_SPECIAL_ACCESS) //
REPARSE_DATA_BUFFER, #define FSCTL_GET_REPARSE_POINT
CTL_CODE(FILE_DEVICE_FILE_SYSTEM,
42, METHOD_BUFFERED, FILE_ANY_ACCESS) // REPARSE_DATA_BUFFER
#define FSCTL_DELETE_REPARSE_POINT CTL_CODE(FILE_DEVICE_FILE_SYSTEM,
43, METHOD_BUFFERED, FILE_SPECIAL_ACCESS) // REPARSE_DATA_BUFFER,

From winioctl.h
#define FSCTL_SET_REPARSE_POINT CTL_CODE(FILE_DEVICE_FILE_SYSTEM,
41, METHOD_BUFFERED, FILE_WRITE_DATA) // REPARSE_DATA_BUFFER,
#define FSCTL_GET_REPARSE_POINT CTL_CODE(FILE_DEVICE_FILE_SYSTEM,
42, METHOD_BUFFERED, FILE_ANY_ACCESS) // ,
REPARSE_DATA_BUFFER #define FSCTL_DELETE_REPARSE_POINT
CTL_CODE(FILE_DEVICE_FILE_SYSTEM,
43, METHOD_BUFFERED, FILE_WRITE_DATA) // REPARSE_DATA_BUFFER,


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


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


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


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


You are currently subscribed to ntfsd as: xxxxx@privtek.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

My point exactly. Thanks Dan. The IOCTL’s definition was changed before Win 2K RTM, after VC6 ship.
Tony points out that developers are not aware of what you say below though. I’ll follow up to make sure
this is properly conveyed.
Ravi

This posting is provided “AS IS” with no warranties, and confers no rights. You assume all risk for your use
-----Original Message-----
From: Dan Kyler [mailto:xxxxx@privtek.com]
Sent: Thursday, February 14, 2002 3:09 PM
To: File Systems Developers
Subject: [ntfsd] RE: Different Reparse FSCTL codes in ntifs.h and wini octl.h

For serious work, you shouldn’t use the h files and libraries that come with Developer Studio. The same files are in the Platform SDK, and they are much more current.

I could be wrong, but I believe Developer Studio 6 shipped quite some time before Windows 2000.

  • Dan.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
Ravisankar Pudipeddi
Sent: Thursday, February 14, 2002 3:58 PM
To: File Systems Developers
Subject: [ntfsd] RE: Different Reparse FSCTL codes in ntifs.h
and wini octl.h

I’ll get this issue documented…
Ravi

-----Original Message-----
From: Pashupati Kumar [mailto:xxxxx@legato.com]
Sent: Thursday, February 14, 2002 2:50 PM
To: File Systems Developers
Subject: [ntfsd] RE: Different Reparse FSCTL codes in ntifs.h
and wini octl.h

yeah FSCTL codes are different and i have vc6.0 sp3

-----Original Message-----
From: Tony Mason [mailto:xxxxx@osr.com]
Sent: Thursday, February 14, 2002 2:41 PM
To: File Systems Developers
Subject: [ntfsd] RE: Different Reparse FSCTL codes in ntifs.h
and wini octl.h

Ravi,

I don’t know about Kevin, but it is that way in my version of
winioctl.h as well - the one shipped with VS 6.0. Haven’t
checked VS.NET yet…

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
?
Hope to see you at the next OSR file systems class March 11,
2002 in Boston!

-----Original Message-----
From: Ravisankar Pudipeddi [mailto:xxxxx@windows.microsoft.com]
Sent: Thursday, February 14, 2002 5:26 PM
To: File Systems Developers
Subject: [ntfsd] RE: Different Reparse FSCTL codes in ntifs.h
and winioctl.h

Where did you get the winioctl.h from? I am looking at Win2K
RTM sources and it’s defined right
(FILE_SPECIAL_ACCESS)

Ravi

-----Original Message-----
From: Kevin Goodwin [mailto:kevin_goodwin@hp.com]
Sent: Thursday, February 14, 2002 9:22 AM
To: File Systems Developers
Subject: [ntfsd] Different Reparse FSCTL codes in ntifs.h and
winioctl.h

Below are the FSCTL codes for reparse points from both ntifs.h and
winioctl.h. (Notice one uses FILE_SPECIAL_ACCESS and the other uses
FILE_WRITE_DATA.) Sending a DeviceIoControl with
FSCTL_SET_REPARSE_POINT
from user mode was failing and not hitting my filter driver
in kernel mode.
After some ugly debugging, I came to find out that Microsoft
didn’t define
the ctl codes the same in their headers. Thanks MS!

From ntifs.h
#define FSCTL_SET_REPARSE_POINT CTL_CODE(FILE_DEVICE_FILE_SYSTEM,
41, METHOD_BUFFERED, FILE_SPECIAL_ACCESS) //
REPARSE_DATA_BUFFER, #define FSCTL_GET_REPARSE_POINT
CTL_CODE(FILE_DEVICE_FILE_SYSTEM,
42, METHOD_BUFFERED, FILE_ANY_ACCESS) // REPARSE_DATA_BUFFER
#define FSCTL_DELETE_REPARSE_POINT CTL_CODE(FILE_DEVICE_FILE_SYSTEM,
43, METHOD_BUFFERED, FILE_SPECIAL_ACCESS) // REPARSE_DATA_BUFFER,

From winioctl.h
#define FSCTL_SET_REPARSE_POINT CTL_CODE(FILE_DEVICE_FILE_SYSTEM,
41, METHOD_BUFFERED, FILE_WRITE_DATA) // REPARSE_DATA_BUFFER,
#define FSCTL_GET_REPARSE_POINT CTL_CODE(FILE_DEVICE_FILE_SYSTEM,
42, METHOD_BUFFERED, FILE_ANY_ACCESS) // ,
REPARSE_DATA_BUFFER #define FSCTL_DELETE_REPARSE_POINT
CTL_CODE(FILE_DEVICE_FILE_SYSTEM,
43, METHOD_BUFFERED, FILE_WRITE_DATA) // REPARSE_DATA_BUFFER,


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


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


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


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


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


You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.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

With the WinXP and forward kits, we have attempted to include *all* the
needed files in the DDK/IFSK to avoid exactly this problem. Note the WinXP
and forward kits also include a full Win2K build environment set. There was
a problem with the WinXP RTM IFS Kit Win2K Build Environment, which has be
fixed since. (See other postings on this list)

If you are missing a headers from current kits - including downlevel build
environments in current kits - this is considered a bug.

Please file it with either the Windows Beta (if you have access) or OSR’s
bug reporting (if you don’t), and we’ll get the files added.

Actively trying to fix this one,
Jean


This posting is provided “AS IS” with no warranties, and confers no rights.

“Ravisankar Pudipeddi” wrote in message
news:xxxxx@ntfsd…

My point exactly. Thanks Dan. The IOCTL’s definition was changed before Win
2K RTM, after VC6 ship.
Tony points out that developers are not aware of what you say below though.
I’ll follow up to make sure
this is properly conveyed.
Ravi
-
This posting is provided “AS IS” with no warranties, and confers no rights.
You assume all risk for your use
-----Original Message-----
From: Dan Kyler [mailto:xxxxx@privtek.com]
Sent: Thursday, February 14, 2002 3:09 PM
To: File Systems Developers
Subject: [ntfsd] RE: Different Reparse FSCTL codes in ntifs.h and wini
octl.h

For serious work, you shouldn’t use the h files and libraries that come with
Developer Studio. The same files are in the Platform SDK, and they are much
more current.

I could be wrong, but I believe Developer Studio 6 shipped quite some time
before Windows 2000.

- Dan.

> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of
> Ravisankar Pudipeddi
> Sent: Thursday, February 14, 2002 3:58 PM
> To: File Systems Developers
> Subject: [ntfsd] RE: Different Reparse FSCTL codes in ntifs.h
> and wini octl.h
>
>
> I’ll get this issue documented…
> Ravi
>
> -----Original Message-----
> From: Pashupati Kumar [mailto:xxxxx@legato.com]
> Sent: Thursday, February 14, 2002 2:50 PM
> To: File Systems Developers
> Subject: [ntfsd] RE: Different Reparse FSCTL codes in ntifs.h
> and wini octl.h
>
>
>
> yeah FSCTL codes are different and i have vc6.0 sp3
>
>
>
>
> -----Original Message-----
> From: Tony Mason [mailto:xxxxx@osr.com]
> Sent: Thursday, February 14, 2002 2:41 PM
> To: File Systems Developers
> Subject: [ntfsd] RE: Different Reparse FSCTL codes in ntifs.h
> and wini octl.h
>
>
>
> Ravi,
>
> I don’t know about Kevin, but it is that way in my version of
> winioctl.h as well - the one shipped with VS 6.0. Haven’t
> checked VS.NET yet…
>
> Tony
>
> Tony Mason
> Consulting Partner
> OSR Open Systems Resources, Inc.
> http://www.osr.com
>
> Hope to see you at the next OSR file systems class March 11,
> 2002 in Boston!
>
>
> -----Original Message-----
> From: Ravisankar Pudipeddi [mailto:xxxxx@windows.microsoft.com]
> Sent: Thursday, February 14, 2002 5:26 PM
> To: File Systems Developers
> Subject: [ntfsd] RE: Different Reparse FSCTL codes in ntifs.h
> and winioctl.h
>
> Where did you get the winioctl.h from? I am looking at Win2K
> RTM sources and it’s defined right
> (FILE_SPECIAL_ACCESS)
>
> Ravi
>
> -----Original Message-----
> From: Kevin Goodwin [mailto:kevin_goodwin@hp.com]
> Sent: Thursday, February 14, 2002 9:22 AM
> To: File Systems Developers
> Subject: [ntfsd] Different Reparse FSCTL codes in ntifs.h and
> winioctl.h
>
>
> Below are the FSCTL codes for reparse points from both ntifs.h and
> winioctl.h. (Notice one uses FILE_SPECIAL_ACCESS and the other uses
> FILE_WRITE_DATA.) Sending a DeviceIoControl with
> FSCTL_SET_REPARSE_POINT
> from user mode was failing and not hitting my filter driver
> in kernel mode.
> After some ugly debugging, I came to find out that Microsoft
> didn’t define
> the ctl codes the same in their headers. Thanks MS!
>
> From ntifs.h
> #define FSCTL_SET_REPARSE_POINT CTL_CODE(FILE_DEVICE_FILE_SYSTEM,
> 41, METHOD_BUFFERED, FILE_SPECIAL_ACCESS) //
> REPARSE_DATA_BUFFER, #define FSCTL_GET_REPARSE_POINT
> CTL_CODE(FILE_DEVICE_FILE_SYSTEM,
> 42, METHOD_BUFFERED, FILE_ANY_ACCESS) // REPARSE_DATA_BUFFER
> #define FSCTL_DELETE_REPARSE_POINT CTL_CODE(FILE_DEVICE_FILE_SYSTEM,
> 43, METHOD_BUFFERED, FILE_SPECIAL_ACCESS) // REPARSE_DATA_BUFFER,
>
> From winioctl.h
> #define FSCTL_SET_REPARSE_POINT CTL_CODE(FILE_DEVICE_FILE_SYSTEM,
> 41, METHOD_BUFFERED, FILE_WRITE_DATA) // REPARSE_DATA_BUFFER,
> #define FSCTL_GET_REPARSE_POINT CTL_CODE(FILE_DEVICE_FILE_SYSTEM,
> 42, METHOD_BUFFERED, FILE_ANY_ACCESS) // ,
> REPARSE_DATA_BUFFER #define FSCTL_DELETE_REPARSE_POINT
> CTL_CODE(FILE_DEVICE_FILE_SYSTEM,
> 43, METHOD_BUFFERED, FILE_WRITE_DATA) // REPARSE_DATA_BUFFER,
>
> —
> You are currently subscribed to ntfsd as:
> xxxxx@windows.microsoft.com To unsubscribe send a blank
> email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
> —
> You are currently subscribed to ntfsd as: xxxxx@osr.com
> To unsubscribe send a blank email to
leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
> —
> You are currently subscribed to ntfsd as: xxxxx@Legato.COM To
> unsubscribe send a blank email to
leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
> —
> You are currently subscribed to ntfsd as:
> xxxxx@windows.microsoft.com To unsubscribe send a blank
> email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
> —
> You are currently subscribed to ntfsd as: xxxxx@privtek.com To
> unsubscribe send a blank email to
leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.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


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