mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Implemented ObOpenObjectByPointer().
svn path=/trunk/; revision=1600
This commit is contained in:
parent
2a2b027dc1
commit
543839bcee
1 changed files with 24 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: object.c,v 1.32 2001/02/02 20:46:36 ekohl Exp $
|
||||
/* $Id: object.c,v 1.33 2001/02/03 23:25:06 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -334,6 +334,7 @@ NTSTATUS STDCALL ObReferenceObjectByPointer(PVOID ObjectBody,
|
|||
return(STATUS_SUCCESS);
|
||||
}
|
||||
|
||||
|
||||
NTSTATUS STDCALL
|
||||
ObOpenObjectByPointer(IN POBJECT Object,
|
||||
IN ULONG HandleAttributes,
|
||||
|
@ -343,8 +344,28 @@ ObOpenObjectByPointer(IN POBJECT Object,
|
|||
IN KPROCESSOR_MODE AccessMode,
|
||||
OUT PHANDLE Handle)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
return STATUS_NOT_IMPLEMENTED;
|
||||
NTSTATUS Status;
|
||||
|
||||
DPRINT("ObOpenObjectByPointer()\n");
|
||||
|
||||
Status = ObReferenceObjectByPointer(Object,
|
||||
0,
|
||||
ObjectType,
|
||||
AccessMode);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
return Status;
|
||||
}
|
||||
|
||||
Status = ObCreateHandle(PsGetCurrentProcess(),
|
||||
Object,
|
||||
DesiredAccess,
|
||||
FALSE,
|
||||
Handle);
|
||||
|
||||
ObDereferenceObject(Object);
|
||||
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue