Object Handle

Hi all,
I have a kernel mode driver which receives the handle to a system object
from the object manager. I need to access the object header using the file
handle. Is there any API provided by Win2k for accessing the object header
given the object handle??
In the book Inside Win2k by David Solomon et.al. the 32bit handle to an
object is said to be a pointer to the object header for the object with some
access bits. Can i use this pointer directly to access the object header??
Or is there a function provided for this functionality?
Thanks,
Samarth

Hi Samarth,

            What that object is? There are various way to get the pointer of that object depending on the  object type.

Good Luck,



From: “Samarth”

>Reply-To: “NT Developers Interest List”
>To: “NT Developers Interest List”
>Subject: [ntdev] Object Handle
>Date: Tue, 6 May 2003 13:53:18 +0530
>
>Hi all,
>I have a kernel mode driver which receives the handle to a system object
>from the object manager. I need to access the object header using the file
>handle. Is there any API provided by Win2k for accessing the object header
>given the object handle??
>In the book Inside Win2k by David Solomon et.al. the 32bit handle to an
>object is said to be a pointer to the object header for the object with some
>access bits. Can i use this pointer directly to access the object header??
>Or is there a function provided for this functionality?
>Thanks,
>Samarth
>
>
>
>
>—
>You are currently subscribed to ntdev as: xxxxx@hotmail.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com


Win a PC. Every 15 days! Just take this quiz.

Hi,
Well that object could be any of the defined system object such as file or a process object. I am particularly concerned with the objects that are exposed to Win32.
The WinObj utility by sysinternals lists out the system object types. I am interested in some of these namely the file, process, driver and directory.
Thanks,
Samarth
“yatindra vaishnav” wrote in message news:xxxxx@ntdev…
Hi Samarth,

What that object is? There are various way to get the pointer of that object depending on the object type.

Good Luck,



>From: “Samarth”
>Reply-To: “NT Developers Interest List”
>To: “NT Developers Interest List”
>Subject: [ntdev] Object Handle
>Date: Tue, 6 May 2003 13:53:18 +0530
>
>Hi all,
>I have a kernel mode driver which receives the handle to a system object
>from the object manager. I need to access the object header using the file
>handle. Is there any API provided by Win2k for accessing the object header
>given the object handle??
>In the book Inside Win2k by David Solomon et.al. the 32bit handle to an
>object is said to be a pointer to the object header for the object with some
>access bits. Can i use this pointer directly to access the object header??
>Or is there a function provided for this functionality?
>Thanks,
>Samarth
>
>
>
>
>—
>You are currently subscribed to ntdev as: xxxxx@hotmail.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com

------------------------------------------------------------------------------
Win a PC. Every 15 days! Just take this quiz.

In SDK, we have GetFileInformationByHandle. There should be something similar for device driver coding also

Amit Manocha
“Samarth” wrote in message news:xxxxx@ntdev…
Hi,
Well that object could be any of the defined system object such as file or a process object. I am particularly concerned with the objects that are exposed to Win32.
The WinObj utility by sysinternals lists out the system object types. I am interested in some of these namely the file, process, driver and directory.
Thanks,
Samarth
“yatindra vaishnav” wrote in message news:xxxxx@ntdev…
Hi Samarth,

What that object is? There are various way to get the pointer of that object depending on the object type.

Good Luck,



>From: “Samarth”
>Reply-To: “NT Developers Interest List”
>To: “NT Developers Interest List”
>Subject: [ntdev] Object Handle
>Date: Tue, 6 May 2003 13:53:18 +0530
>
>Hi all,
>I have a kernel mode driver which receives the handle to a system object
>from the object manager. I need to access the object header using the file
>handle. Is there any API provided by Win2k for accessing the object header
>given the object handle??
>In the book Inside Win2k by David Solomon et.al. the 32bit handle to an
>object is said to be a pointer to the object header for the object with some
>access bits. Can i use this pointer directly to access the object header??
>Or is there a function provided for this functionality?
>Thanks,
>Samarth
>
>
>
>
>—
>You are currently subscribed to ntdev as: xxxxx@hotmail.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com

----------------------------------------------------------------------------
Win a PC. Every 15 days! Just take this quiz.

Hi Samarth,

          See the process object u can’t get because it is a hidden object from any driver. But for the file handle u’ve to have the handle from inside of the kernel in this case u can get the object reference by calling APIs ObReferenceObjectByHandle. Because the handle is process specific.
         I think it is the answer to ur question.

Good Luck


From: “Samarth”

>Reply-To: “NT Developers Interest List”
>To: “NT Developers Interest List”
>Subject: [ntdev] Re: Object Handle
>Date: Tue, 6 May 2003 14:14:46 +0530
>
>Hi,
> Well that object could be any of the defined system object such as file or a process object. I am particularly concerned with the objects that are exposed to Win32.
>The WinObj utility by sysinternals lists out the system object types. I am interested in some of these namely the file, process, driver and directory.
>Thanks,
>Samarth
> “yatindra vaishnav” wrote in message news:xxxxx@ntdev…
> Hi Samarth,
>
> What that object is? There are various way to get the pointer of that object depending on the object type.
>
> Good Luck,
>
>
>
>
>
> >From: “Samarth”
> >Reply-To: “NT Developers Interest List”
> >To: “NT Developers Interest List”
> >Subject: [ntdev] Object Handle
> >Date: Tue, 6 May 2003 13:53:18 +0530
> >
> >Hi all,
> >I have a kernel mode driver which receives the handle to a system object
> >from the object manager. I need to access the object header using the file
> >handle. Is there any API provided by Win2k for accessing the object header
> >given the object handle??
> >In the book Inside Win2k by David Solomon et.al. the 32bit handle to an
> >object is said to be a pointer to the object header for the object with some
> >access bits. Can i use this pointer directly to access the object header??
> >Or is there a function provided for this functionality?
> >Thanks,
> >Samarth
> >
> >
> >
> >
> >—
> >You are currently subscribed to ntdev as: xxxxx@hotmail.com
> >To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>------------------------------------------------------------------------------
> Win a PC. Every 15 days! Just take this quiz.
>
>
>—
>You are currently subscribed to ntdev as: xxxxx@hotmail.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com


What is SARS? Find out! Be informed.

ZwQueryInformationFile.

Max

----- Original Message -----
From: Amit Manocha
Newsgroups: ntdev
To: NT Developers Interest List
Sent: Tuesday, May 06, 2003 3:14 PM
Subject: [ntdev] Re: Object Handle

In SDK, we have GetFileInformationByHandle. There should be something similar for device driver coding also

Amit Manocha
“Samarth” wrote in message news:xxxxx@ntdev…
Hi,
Well that object could be any of the defined system object such as file or a process object. I am particularly concerned with the objects that are exposed to Win32.
The WinObj utility by sysinternals lists out the system object types. I am interested in some of these namely the file, process, driver and directory.
Thanks,
Samarth
“yatindra vaishnav” wrote in message news:xxxxx@ntdev…
Hi Samarth,

What that object is? There are various way to get the pointer of that object depending on the object type.

Good Luck,



>From: “Samarth”
>Reply-To: “NT Developers Interest List”
>To: “NT Developers Interest List”
>Subject: [ntdev] Object Handle
>Date: Tue, 6 May 2003 13:53:18 +0530
>
>Hi all,
>I have a kernel mode driver which receives the handle to a system object
>from the object manager. I need to access the object header using the file
>handle. Is there any API provided by Win2k for accessing the object header
>given the object handle??
>In the book Inside Win2k by David Solomon et.al. the 32bit handle to an
>object is said to be a pointer to the object header for the object with some
>access bits. Can i use this pointer directly to access the object header??
>Or is there a function provided for this functionality?
>Thanks,
>Samarth
>
>
>
>
>—
>You are currently subscribed to ntdev as: xxxxx@hotmail.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com

--------------------------------------------------------------------------
Win a PC. Every 15 days! Just take this quiz.

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

Thank you…I think this should help.
“Maxim S. Shatskih” wrote in message news:xxxxx@ntdev…
ZwQueryInformationFile.

Max

----- Original Message -----
From: Amit Manocha
Newsgroups: ntdev
To: NT Developers Interest List
Sent: Tuesday, May 06, 2003 3:14 PM
Subject: [ntdev] Re: Object Handle

In SDK, we have GetFileInformationByHandle. There should be something similar for device driver coding also

Amit Manocha
“Samarth” wrote in message news:xxxxx@ntdev…
Hi,
Well that object could be any of the defined system object such as file or a process object. I am particularly concerned with the objects that are exposed to Win32.
The WinObj utility by sysinternals lists out the system object types. I am interested in some of these namely the file, process, driver and directory.
Thanks,
Samarth
“yatindra vaishnav” wrote in message news:xxxxx@ntdev…
Hi Samarth,

What that object is? There are various way to get the pointer of that object depending on the object type.

Good Luck,



>From: “Samarth”
>Reply-To: “NT Developers Interest List”
>To: “NT Developers Interest List”
>Subject: [ntdev] Object Handle
>Date: Tue, 6 May 2003 13:53:18 +0530
>
>Hi all,
>I have a kernel mode driver which receives the handle to a system object
>from the object manager. I need to access the object header using the file
>handle. Is there any API provided by Win2k for accessing the object header
>given the object handle??
>In the book Inside Win2k by David Solomon et.al. the 32bit handle to an
>object is said to be a pointer to the object header for the object with some
>access bits. Can i use this pointer directly to access the object header??
>Or is there a function provided for this functionality?
>Thanks,
>Samarth
>
>
>
>
>—
>You are currently subscribed to ntdev as: xxxxx@hotmail.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com

------------------------------------------------------------------------
Win a PC. Every 15 days! Just take this quiz.

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