I used this function in my filter driver. But when I compile my driver,
there are errors about this function:
error C2115: ‘function’ : incompatible types
error C2115: ‘function’ : incompatible types
I thought that becuase the compiler can not find the function body of
ObOpenObjectByPointer.
Where can I find this function’s body??
Thanks.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Dan Partelly
Sent: Tuesday, June 25, 2002 11:20 AM
To: File Systems Developers
Subject: [ntfsd] Re: How to reobtain a file handle from file object pointer
in driver?
NTKERNELAPI
NTSTATUS
ObOpenObjectByPointer(
IN PVOID Object,
IN ULONG HandleAttributes,
IN PACCESS_STATE PassedAccessState OPTIONAL,
IN ACCESS_MASK DesiredAccess OPTIONAL,
IN POBJECT_TYPE ObjectType OPTIONAL,
IN KPROCESSOR_MODE AccessMode,
OUT PHANDLE Handle
);
----- Original Message -----
From: “gaoren”
To: “File Systems Developers”
Sent: Tuesday, June 25, 2002 6:10 PM
Subject: [ntfsd] How to reobtain a file handle from file object pointer in
driver?
> Hi all,
> Did any one know how to reobtain a handle from file object in different
> context other than the one that the file was created and Obreferenced.
>
> Thanks for your help.
>
> Laura.
>
>
>
>
>
> Do You Yahoo!?
>
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@rdsor.ro
> To unsubscribe send a blank email to %%email.unsub%%
>
—
You are currently subscribed to ntfsd as: xxxxx@yahoo.ca
To unsubscribe send a blank email to %%email.unsub%%
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
You have to define the prototype in you header file.
-Ilya.
-----Original Message-----
From: gaoren [mailto:xxxxx@yahoo.ca]
Sent: Tuesday, June 25, 2002 3:05 PM
To: File Systems Developers
Subject: [ntfsd] Compiling Error about ObOpenObjectByPointer()??
I used this function in my filter driver. But when I compile my driver,
there are errors about this function:
error C2115: ‘function’ : incompatible types
error C2115: ‘function’ : incompatible types
I thought that becuase the compiler can not find the function body of
ObOpenObjectByPointer.
Where can I find this function’s body??
Thanks.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Dan Partelly
Sent: Tuesday, June 25, 2002 11:20 AM
To: File Systems Developers
Subject: [ntfsd] Re: How to reobtain a file handle from file object pointer
in driver?
NTKERNELAPI
NTSTATUS
ObOpenObjectByPointer(
IN PVOID Object,
IN ULONG HandleAttributes,
IN PACCESS_STATE PassedAccessState OPTIONAL,
IN ACCESS_MASK DesiredAccess OPTIONAL,
IN POBJECT_TYPE ObjectType OPTIONAL,
IN KPROCESSOR_MODE AccessMode,
OUT PHANDLE Handle
);
----- Original Message -----
From: “gaoren”
To: “File Systems Developers”
Sent: Tuesday, June 25, 2002 6:10 PM
Subject: [ntfsd] How to reobtain a file handle from file object pointer in
driver?
> Hi all,
> Did any one know how to reobtain a handle from file object in different
> context other than the one that the file was created and Obreferenced.
>
> Thanks for your help.
>
> Laura.
>
>
>
>
>
> Do You Yahoo!?
>
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@rdsor.ro
> To unsubscribe send a blank email to %%email.unsub%%
>
—
You are currently subscribed to ntfsd as: xxxxx@yahoo.ca
To unsubscribe send a blank email to %%email.unsub%%
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
—
You are currently subscribed to ntfsd as: xxxxx@softricity.com
To unsubscribe send a blank email to %%email.unsub%%
>> Where can I find this function’s body??
Exported by ntoskrnl, Right ??
If you worry about types , you most likely pass incompatible parameters to
function, providing you declared the prototype I gaved you somewhere.
----- Original Message -----
From: “gaoren”
To: “File Systems Developers”
Sent: Tuesday, June 25, 2002 10:05 PM
Subject: [ntfsd] Compiling Error about ObOpenObjectByPointer()??
> I used this function in my filter driver. But when I compile my driver,
> there are errors about this function:
> error C2115: ‘function’ : incompatible types
> error C2115: ‘function’ : incompatible types
>
> I thought that becuase the compiler can not find the function body of
> ObOpenObjectByPointer.
> Where can I find this function’s body??
>
> Thanks.
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of Dan Partelly
> Sent: Tuesday, June 25, 2002 11:20 AM
> To: File Systems Developers
> Subject: [ntfsd] Re: How to reobtain a file handle from file object
pointer
> in driver?
>
>
> NTKERNELAPI
> NTSTATUS
> ObOpenObjectByPointer(
> IN PVOID Object,
> IN ULONG HandleAttributes,
> IN PACCESS_STATE PassedAccessState OPTIONAL,
> IN ACCESS_MASK DesiredAccess OPTIONAL,
> IN POBJECT_TYPE ObjectType OPTIONAL,
> IN KPROCESSOR_MODE AccessMode,
> OUT PHANDLE Handle
> );
>
> ----- Original Message -----
> From: “gaoren”
> To: “File Systems Developers”
> Sent: Tuesday, June 25, 2002 6:10 PM
> Subject: [ntfsd] How to reobtain a file handle from file object pointer in
> driver?
>
>
> > Hi all,
> > Did any one know how to reobtain a handle from file object in different
> > context other than the one that the file was created and Obreferenced.
> >
> > Thanks for your help.
> >
> > Laura.
> >
> >
> >
> >
> >
> > Do You Yahoo!?
> >
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> >
> >
> > —
> > You are currently subscribed to ntfsd as: xxxxx@rdsor.ro
> > To unsubscribe send a blank email to %%email.unsub%%
> >
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@yahoo.ca
> To unsubscribe send a blank email to %%email.unsub%%
>
>
>
>
>
> Do You Yahoo!?
>
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@rdsor.ro
> To unsubscribe send a blank email to %%email.unsub%%
>