Commit 410cb3e7 authored by Jim Cameron's avatar Jim Cameron Committed by Alexandre Julliard

ntoskrnl.exe: Add stub for ObReferenceObjectByHandle().

parent 4f39948f
...@@ -778,6 +778,20 @@ void WINAPI MmResetDriverPaging(PVOID AddrInSection) ...@@ -778,6 +778,20 @@ void WINAPI MmResetDriverPaging(PVOID AddrInSection)
TRACE("%p\n", 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.@) * PsCreateSystemThread (NTOSKRNL.EXE.@)
*/ */
......
...@@ -809,7 +809,7 @@ ...@@ -809,7 +809,7 @@
@ stub ObOpenObjectByPointer @ stub ObOpenObjectByPointer
@ stub ObQueryNameString @ stub ObQueryNameString
@ stub ObQueryObjectAuditingByHandle @ stub ObQueryObjectAuditingByHandle
@ stub ObReferenceObjectByHandle @ stdcall ObReferenceObjectByHandle(long long ptr long ptr ptr)
@ stub ObReferenceObjectByName @ stub ObReferenceObjectByName
@ stub ObReferenceObjectByPointer @ stub ObReferenceObjectByPointer
@ stub ObReferenceSecurityDescriptor @ stub ObReferenceSecurityDescriptor
......
...@@ -89,6 +89,8 @@ typedef struct _ETHREAD *PETHREAD; ...@@ -89,6 +89,8 @@ typedef struct _ETHREAD *PETHREAD;
typedef struct _KTHREAD *PKTHREAD; typedef struct _KTHREAD *PKTHREAD;
typedef struct _EPROCESS *PEPROCESS; typedef struct _EPROCESS *PEPROCESS;
typedef struct _IO_WORKITEM *PIO_WORKITEM; 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)) #define MAXIMUM_VOLUME_LABEL_LENGTH (32 * sizeof(WCHAR))
...@@ -953,6 +955,8 @@ ULONG WINAPI KeQueryTimeIncrement(void); ...@@ -953,6 +955,8 @@ ULONG WINAPI KeQueryTimeIncrement(void);
PVOID WINAPI MmAllocateNonCachedMemory(SIZE_T); PVOID WINAPI MmAllocateNonCachedMemory(SIZE_T);
void WINAPI MmFreeNonCachedMemory(PVOID,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); NTSTATUS WINAPI PsCreateSystemThread(PHANDLE,ULONG,POBJECT_ATTRIBUTES,HANDLE,PCLIENT_ID,PKSTART_ROUTINE,PVOID);
#define PsGetCurrentProcess() IoGetCurrentProcess() #define PsGetCurrentProcess() IoGetCurrentProcess()
#define PsGetCurrentThread() ((PETHREAD)KeGetCurrentThread()) #define PsGetCurrentThread() ((PETHREAD)KeGetCurrentThread())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment