no FileObject in SetFileInformation

When I try to reference the FileObject in the SetFileInformation Callback I
get the compile error:

error C2039: ‘FileObject’ : is not a member of ‘__unnamed’

in the line:

Data->Iopb->Parameters.SetFileInformation.FileObject

I can reference things like .InfoBuffer and .FileInformationClass. This is
what is in the header file:

struct {

ULONG Length;

FILE_INFORMATION_CLASS POINTER_ALIGNMENT FileInformationClass;

PFILE_OBJECT FileObject;

union {

struct {

BOOLEAN ReplaceIfExists;

BOOLEAN AdvanceOnly;

};

ULONG ClusterCount;

HANDLE DeleteHandle;

};

PVOID InfoBuffer; //Not in IO_STACK_LOCATION parameters list

} SetFileInformation;

Any idea what is going on?

Thanks,

Ken

My version of fltkernel.h (DDK 3790.1159) it is called:

Data->Iopb->Parameters.SetFileInformation.ParentOfTarget

/ted

-----Original Message-----
From: Ken Galipeau [mailto:xxxxx@legato.com]
Sent: Friday, March 19, 2004 1:55 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] no FileObject in SetFileInformation

When I try to reference the FileObject in the SetFileInformation Callback I
get the compile error:

error C2039: ‘FileObject’ : is not a member of ‘__unnamed’

in the line:

Data->Iopb->Parameters.SetFileInformation.FileObject

I can reference things like .InfoBuffer and .FileInformationClass. This is
what is in the header file:

struct {

ULONG Length;

FILE_INFORMATION_CLASS POINTER_ALIGNMENT FileInformationClass;

PFILE_OBJECT FileObject;

union {

struct {

BOOLEAN ReplaceIfExists;

BOOLEAN AdvanceOnly;

};

ULONG ClusterCount;

HANDLE DeleteHandle;

};

PVOID InfoBuffer; //Not in IO_STACK_LOCATION parameters list

} SetFileInformation;

Any idea what is going on?

Thanks,

Ken


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@livevault.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

That’s It! Thanks!

I was compiling with version 1159 but still looking at the 1139 version. Its
funny because the intellisense completion feature of VC .NET was showing the
value as FileObject (there was no ParentOfTarget).

I assume that ParentOfTarget is the same value that is in
pIrpStack->Parameters.SetFile.FileObject?

Thanks,
ken


From: Ted Hess [mailto:xxxxx@livevault.com]
Sent: Friday, March 19, 2004 3:04 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] no FileObject in SetFileInformation

My version of fltkernel.h (DDK 3790.1159) it is called:

Data->Iopb->Parameters.SetFileInformation.ParentOfTarget

/ted

-----Original Message-----
From: Ken Galipeau [mailto:xxxxx@legato.com]
Sent: Friday, March 19, 2004 1:55 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] no FileObject in SetFileInformation

When I try to reference the FileObject in the SetFileInformation Callback I
get the compile error:

error C2039: ‘FileObject’ : is not a member of ‘__unnamed’

in the line:

Data->Iopb->Parameters.SetFileInformation.FileObject

I can reference things like .InfoBuffer and .FileInformationClass. This is
what is in the header file:

struct {

ULONG Length;

FILE_INFORMATION_CLASS POINTER_ALIGNMENT FileInformationClass;

PFILE_OBJECT FileObject;

union {

struct {

BOOLEAN ReplaceIfExists;

BOOLEAN AdvanceOnly;

};

ULONG ClusterCount;

HANDLE DeleteHandle;

};

PVOID InfoBuffer; //Not in IO_STACK_LOCATION parameters list

} SetFileInformation;

Any idea what is going on?

Thanks,

Ken


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@livevault.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@legato.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Yes, it is the same value.

We renamed the field to make it a little cleared as to what it contained. We have had a lot of people in the past think it was the file object for the file being renamed.

The request to change this came from our fearless Doc writer Diane.

Neal Christiansen
Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no rights.


From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Ken Galipeau
Sent: Friday, March 19, 2004 2:34 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] no FileObject in SetFileInformation

That’s It! ?Thanks!

I was compiling with version 1159 but still looking at the 1139 version. Its funny because the intellisense completion feature of VC .NET was showing the value as FileObject (there was no ParentOfTarget).

I assume that ParentOfTarget is the same value that is in pIrpStack->Parameters.SetFile.FileObject?

Thanks,
ken


From: Ted Hess [mailto:xxxxx@livevault.com]
Sent: Friday, March 19, 2004 3:04 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] no FileObject in SetFileInformation

My version of fltkernel.h (DDK 3790.1159) it is called:
?
??? Data->Iopb->Parameters.SetFileInformation.ParentOfTarget
?
??? /ted
?
?-----Original Message-----
From: Ken Galipeau [mailto:xxxxx@legato.com]
Sent: Friday, March 19, 2004 1:55 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] no FileObject in SetFileInformation
When I try to reference the FileObject in the SetFileInformation Callback I get the compile error:

error C2039: ‘FileObject’ : is not a member of ‘__unnamed’

in the line:

??? Data->Iopb->Parameters.SetFileInformation.FileObject

I can reference things like .InfoBuffer and .FileInformationClass. This is what is in the header file:

??? struct {
??? ULONG Length;
??? FILE_INFORMATION_CLASS POINTER_ALIGNMENT FileInformationClass;
??? PFILE_OBJECT FileObject;
??? union {
??? struct {
??? BOOLEAN ReplaceIfExists;
??? BOOLEAN AdvanceOnly;
??? };
??? ULONG ClusterCount;
??? HANDLE DeleteHandle;
??? };

??? PVOID InfoBuffer;??? //Not in IO_STACK_LOCATION parameters list
??? } SetFileInformation;

Any idea what is going on?

Thanks,
Ken

Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@livevault.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@legato.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com