ntoskrnl.exe: Add stub for ObReferenceObjectByHandle().

This commit is contained in:
Jim Cameron 2008-08-28 23:45:48 +01:00 committed by Alexandre Julliard
parent 4f39948f7b
commit 410cb3e7f8
3 changed files with 19 additions and 1 deletions

View File

@ -778,6 +778,20 @@ void WINAPI MmResetDriverPaging(PVOID AddrInSection)
TRACE("%p\n", AddrInSection);
}
/***********************************************************************
* ObReferenceObjectByHandle (NTOSKRNL.EXE.@)
*/
NTSTATUS WINAPI ObReferenceObjectByHandle( HANDLE obj, ACCESS_MASK access,
POBJECT_TYPE type,
KPROCESSOR_MODE mode, PVOID* ptr,
POBJECT_HANDLE_INFORMATION info)
{
FIXME( "stub: %p %x %p %d %p %p\n", obj, access, type, mode, ptr, info);
return STATUS_NOT_IMPLEMENTED;
}
/***********************************************************************
* PsCreateSystemThread (NTOSKRNL.EXE.@)
*/

View File

@ -809,7 +809,7 @@
@ stub ObOpenObjectByPointer
@ stub ObQueryNameString
@ stub ObQueryObjectAuditingByHandle
@ stub ObReferenceObjectByHandle
@ stdcall ObReferenceObjectByHandle(long long ptr long ptr ptr)
@ stub ObReferenceObjectByName
@ stub ObReferenceObjectByPointer
@ stub ObReferenceSecurityDescriptor

View File

@ -89,6 +89,8 @@ typedef struct _ETHREAD *PETHREAD;
typedef struct _KTHREAD *PKTHREAD;
typedef struct _EPROCESS *PEPROCESS;
typedef struct _IO_WORKITEM *PIO_WORKITEM;
typedef struct _OBJECT_TYPE *POBJECT_TYPE;
typedef struct _OBJECT_HANDLE_INFORMATION *POBJECT_HANDLE_INFORMATION;
#define MAXIMUM_VOLUME_LABEL_LENGTH (32 * sizeof(WCHAR))
@ -953,6 +955,8 @@ ULONG WINAPI KeQueryTimeIncrement(void);
PVOID WINAPI MmAllocateNonCachedMemory(SIZE_T);
void WINAPI MmFreeNonCachedMemory(PVOID,SIZE_T);
NTSTATUS WINAPI ObReferenceObjectByHandle(HANDLE,ACCESS_MASK,POBJECT_TYPE,KPROCESSOR_MODE,PVOID*,POBJECT_HANDLE_INFORMATION);
NTSTATUS WINAPI PsCreateSystemThread(PHANDLE,ULONG,POBJECT_ATTRIBUTES,HANDLE,PCLIENT_ID,PKSTART_ROUTINE,PVOID);
#define PsGetCurrentProcess() IoGetCurrentProcess()
#define PsGetCurrentThread() ((PETHREAD)KeGetCurrentThread())