Getting File Size?

Hi All,

How to get the file size using the file object?

With Regards,
A.Ilamparithi.

Get a handle from the object and use ZwQueryInformationFile.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of A.Ilamparithi
Sent: Thursday, August 12, 2004 7:57 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Getting File Size?

Hi All,

How to get the file size using the file object?

With Regards,
A.Ilamparithi.


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

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

But how to get the handle from the file object?

With Thanks,
A.Ilamparithi.

“Mark Roddy” wrote in message news:xxxxx@ntdev…
> Get a handle from the object and use ZwQueryInformationFile.
>
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of A.Ilamparithi
> > Sent: Thursday, August 12, 2004 7:57 PM
> > To: Windows System Software Devs Interest List
> > Subject: [ntdev] Getting File Size?
> >
> > Hi All,
> >
> > How to get the file size using the file object?
> >
> > With Regards,
> > A.Ilamparithi.
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as:
> > xxxxx@hollistech.com To unsubscribe send a blank email to
> > xxxxx@lists.osr.com
> >
>
>
>
>

What context are you in that you have a FILE_OBJECT but no handle? The
function to do this isn’t documented in the DDK. My guess is that there
is a better way to do what you’re trying to do.

-sd

On Thu, 2004-08-12 at 21:07, A.Ilamparithi wrote:

But how to get the handle from the file object?

With Thanks,
A.Ilamparithi.

“Mark Roddy” wrote in message news:xxxxx@ntdev…
> > Get a handle from the object and use ZwQueryInformationFile.
> >
> > > -----Original Message-----
> > > From: xxxxx@lists.osr.com
> > > [mailto:xxxxx@lists.osr.com] On Behalf Of A.Ilamparithi
> > > Sent: Thursday, August 12, 2004 7:57 PM
> > > To: Windows System Software Devs Interest List
> > > Subject: [ntdev] Getting File Size?
> > >
> > > Hi All,
> > >
> > > How to get the file size using the file object?
> > >
> > > With Regards,
> > > A.Ilamparithi.
> > >
> > >
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > > http://www.osronline.com/article.cfm?id=256
> > >
> > > You are currently subscribed to ntdev as:
> > > xxxxx@hollistech.com To unsubscribe send a blank email to
> > > xxxxx@lists.osr.com
> > >
> >
> >
> >
> >
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@positivenetworks.net
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

If he needs this he should go get the ifs kit and the
prototype/documentation for opening an object by pointer. Given that he has
the file object, I’d say he needs the ifs kit anyhow :slight_smile:

=====================
Mark Roddy

-----Original Message-----
From: Steve Dispensa [mailto:xxxxx@positivenetworks.net]
Sent: Thursday, August 12, 2004 1:47 PM
To: Windows System Software Devs Interest List
Subject: Re: Re:[ntdev] Getting File Size?

What context are you in that you have a FILE_OBJECT but no handle? The
function to do this isn’t documented in the DDK. My guess is that there is
a better way to do what you’re trying to do.

-sd

On Thu, 2004-08-12 at 21:07, A.Ilamparithi wrote:

But how to get the handle from the file object?

With Thanks,
A.Ilamparithi.

“Mark Roddy” wrote in message news:xxxxx@ntdev…
> > Get a handle from the object and use ZwQueryInformationFile.
> >
> > > -----Original Message-----
> > > From: xxxxx@lists.osr.com
> > > [mailto:xxxxx@lists.osr.com] On Behalf Of
> > > A.Ilamparithi
> > > Sent: Thursday, August 12, 2004 7:57 PM
> > > To: Windows System Software Devs Interest List
> > > Subject: [ntdev] Getting File Size?
> > >
> > > Hi All,
> > >
> > > How to get the file size using the file object?
> > >
> > > With Regards,
> > > A.Ilamparithi.
> > >
> > >
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > > http://www.osronline.com/article.cfm?id=256
> > >
> > > You are currently subscribed to ntdev as:
> > > xxxxx@hollistech.com To unsubscribe send a blank email to
> > > xxxxx@lists.osr.com
> > >
> >
> >
> >
> >
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as:
> xxxxx@positivenetworks.net To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>


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

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

I have IFS kit with me.

With Thanks,
A.Ilamparithi.

“Roddy, Mark” wrote in message news:xxxxx@ntdev…
> If he needs this he should go get the ifs kit and the
> prototype/documentation for opening an object by pointer. Given that he
has
> the file object, I’d say he needs the ifs kit anyhow :slight_smile:
>
>
>
> =====================
> Mark Roddy
>
> -----Original Message-----
> From: Steve Dispensa [mailto:xxxxx@positivenetworks.net]
> Sent: Thursday, August 12, 2004 1:47 PM
> To: Windows System Software Devs Interest List
> Subject: Re: Re:[ntdev] Getting File Size?
>
> What context are you in that you have a FILE_OBJECT but no handle? The
> function to do this isn’t documented in the DDK. My guess is that there
is
> a better way to do what you’re trying to do.
>
> -sd
>
> On Thu, 2004-08-12 at 21:07, A.Ilamparithi wrote:
> > But how to get the handle from the file object?
> >
> > With Thanks,
> > A.Ilamparithi.
> >
> > “Mark Roddy” wrote in message news:xxxxx@ntdev…
> > > Get a handle from the object and use ZwQueryInformationFile.
> > >
> > > > -----Original Message-----
> > > > From: xxxxx@lists.osr.com
> > > > [mailto:xxxxx@lists.osr.com] On Behalf Of
> > > > A.Ilamparithi
> > > > Sent: Thursday, August 12, 2004 7:57 PM
> > > > To: Windows System Software Devs Interest List
> > > > Subject: [ntdev] Getting File Size?
> > > >
> > > > Hi All,
> > > >
> > > > How to get the file size using the file object?
> > > >
> > > > With Regards,
> > > > A.Ilamparithi.
> > > >
> > > >
> > > >
> > > > —
> > > > Questions? First check the Kernel Driver FAQ at
> > > > http://www.osronline.com/article.cfm?id=256
> > > >
> > > > You are currently subscribed to ntdev as:
> > > > xxxxx@hollistech.com To unsubscribe send a blank email to
> > > > xxxxx@lists.osr.com
> > > >
> > >
> > >
> > >
> > >
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as:
> > xxxxx@positivenetworks.net To unsubscribe send a blank email to
> > xxxxx@lists.osr.com
> >
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@stratus.com To
> unsubscribe send a blank email to xxxxx@lists.osr.com
>

Then look at the ObXxx function in IFS specific functions, there’re only few
of functions. I’m pretty sure you can find the one Mark implied.

Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com

-----Original Message-----
From: A.Ilamparithi [mailto:xxxxx@msn.com]
Sent: Friday, August 13, 2004 4:33 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Re:Getting File Size?

I have IFS kit with me.

With Thanks,
A.Ilamparithi.

“Roddy, Mark” wrote in message
> news:xxxxx@ntdev…
> > If he needs this he should go get the ifs kit and the
> > prototype/documentation for opening an object by pointer.
> Given that he
> has
> > the file object, I’d say he needs the ifs kit anyhow :slight_smile:
> >
> >
> >
> > =====================
> > Mark Roddy
> >
> > -----Original Message-----
> > From: Steve Dispensa [mailto:xxxxx@positivenetworks.net]
> > Sent: Thursday, August 12, 2004 1:47 PM
> > To: Windows System Software Devs Interest List
> > Subject: Re: Re:[ntdev] Getting File Size?
> >
> > What context are you in that you have a FILE_OBJECT but no
> handle? The
> > function to do this isn’t documented in the DDK. My guess
> is that there
> is
> > a better way to do what you’re trying to do.
> >
> > -sd
> >
> > On Thu, 2004-08-12 at 21:07, A.Ilamparithi wrote:
> > > But how to get the handle from the file object?
> > >
> > > With Thanks,
> > > A.Ilamparithi.
> > >
> > > “Mark Roddy” wrote in message
> news:xxxxx@ntdev…
> > > > Get a handle from the object and use ZwQueryInformationFile.
> > > >
> > > > > -----Original Message-----
> > > > > From: xxxxx@lists.osr.com
> > > > > [mailto:xxxxx@lists.osr.com] On Behalf Of
> > > > > A.Ilamparithi
> > > > > Sent: Thursday, August 12, 2004 7:57 PM
> > > > > To: Windows System Software Devs Interest List
> > > > > Subject: [ntdev] Getting File Size?
> > > > >
> > > > > Hi All,
> > > > >
> > > > > How to get the file size using the file object?
> > > > >
> > > > > With Regards,
> > > > > A.Ilamparithi.
> > > > >
> > > > >
> > > > >
> > > > > —
> > > > > Questions? First check the Kernel Driver FAQ at
> > > > > http://www.osronline.com/article.cfm?id=256
> > > > >
> > > > > You are currently subscribed to ntdev as:
> > > > > xxxxx@hollistech.com To unsubscribe send a blank email to
> > > > > xxxxx@lists.osr.com
> > > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > > http://www.osronline.com/article.cfm?id=256
> > >
> > > You are currently subscribed to ntdev as:
> > > xxxxx@positivenetworks.net To unsubscribe send a blank email to
> > > xxxxx@lists.osr.com
> > >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@stratus.com To
> > unsubscribe send a blank email to xxxxx@lists.osr.com
> >
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@ati.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

Basically i want to know the file size of files that are opened by notepad.

With Thanks,
A.Ilamparithi.

“Steve Dispensa” wrote in message
news:xxxxx@ntdev…
> What context are you in that you have a FILE_OBJECT but no handle? The
> function to do this isn’t documented in the DDK. My guess is that there
> is a better way to do what you’re trying to do.
>
> -sd
>
> On Thu, 2004-08-12 at 21:07, A.Ilamparithi wrote:
> > But how to get the handle from the file object?
> >
> > With Thanks,
> > A.Ilamparithi.
> >
> > “Mark Roddy” wrote in message news:xxxxx@ntdev…
> > > Get a handle from the object and use ZwQueryInformationFile.
> > >
> > > > -----Original Message-----
> > > > From: xxxxx@lists.osr.com
> > > > [mailto:xxxxx@lists.osr.com] On Behalf Of A.Ilamparithi
> > > > Sent: Thursday, August 12, 2004 7:57 PM
> > > > To: Windows System Software Devs Interest List
> > > > Subject: [ntdev] Getting File Size?
> > > >
> > > > Hi All,
> > > >
> > > > How to get the file size using the file object?
> > > >
> > > > With Regards,
> > > > A.Ilamparithi.
> > > >
> > > >
> > > >
> > > > —
> > > > Questions? First check the Kernel Driver FAQ at
> > > > http://www.osronline.com/article.cfm?id=256
> > > >
> > > > You are currently subscribed to ntdev as:
> > > > xxxxx@hollistech.com To unsubscribe send a blank email to
> > > > xxxxx@lists.osr.com
> > > >
> > >
> > >
> > >
> > >
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@positivenetworks.net
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
>
>