Author: hbelusca
Date: Sat Sep 21 19:52:44 2013
New Revision: 60292
URL:
http://svn.reactos.org/svn/reactos?rev=60292&view=rev
Log:
[NTOS]
- Stubplement ObDeleteCapturedInsertInfo, which was added in Win2k3 (and is present in
Vista+) and in Win2k SP4, according to
http://www.geoffchappell.com/studies/windows/km/ntoskrnl/history/names50sp4… .
Its prototype come from
http://hi.baidu.com/_achillis/item/422140888137cb834514cf08
(this is a chinese article explaining some of the changes in the Object Manager from
Windows XP to 7).
- Stubplement ObSetHandleAttributes, which was added in NT 5.1 (XP) (see
http://www.geoffchappell.com/studies/windows/km/ntoskrnl/history/names51.htm); its
prototype is given in
http://processhacker.sourceforge.net/doc/ntfill_8h.html#a7f6e063aedf2354a73…
.
Its second parameter, a pointer to a OBJECT_HANDLE_FLAG_INFORMATION structure, according
to its definition in
http://processhacker.sourceforge.net/doc/struct___o_b_j_e_c_t___h_a_n_d_l_e…,
appears to correspond to our OBJECT_HANDLE_ATTRIBUTE_INFORMATION structure defined in
http://git.reactos.org/?p=reactos.git;a=blob;f=reactos/include/ndk/obtypes.…
.
Those functions are needed by Win2k3's win32k.sys .
Modified:
trunk/reactos/ntoskrnl/ntoskrnl.spec
trunk/reactos/ntoskrnl/ob/obhandle.c
trunk/reactos/ntoskrnl/ob/oblife.c
Modified: trunk/reactos/ntoskrnl/ntoskrnl.spec
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ntoskrnl.spec?rev…
==============================================================================
--- trunk/reactos/ntoskrnl/ntoskrnl.spec [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ntoskrnl.spec [iso-8859-1] Sat Sep 21 19:52:44 2013
@@ -899,7 +899,7 @@
@ stdcall ObCloseHandle(ptr long)
@ stdcall ObCreateObject(long ptr ptr long ptr long long long ptr)
@ stdcall ObCreateObjectType(ptr ptr ptr ptr)
-;ObDeleteCapturedInsertInfo
+@ stdcall ObDeleteCapturedInsertInfo(ptr)
@ stdcall ObDereferenceObject(ptr)
@ stdcall -arch=i386,arm ObDereferenceObjectDeferDelete(ptr)
@ stdcall ObDereferenceSecurityDescriptor(ptr long)
@@ -918,7 +918,7 @@
@ stdcall ObReferenceObjectByPointer(ptr long ptr long)
@ stdcall ObReferenceSecurityDescriptor(ptr long)
@ stdcall ObReleaseObjectSecurity(ptr long)
-;ObSetHandleAttributes@12
+@ stdcall ObSetHandleAttributes(ptr ptr long)
@ stdcall ObSetSecurityDescriptorInfo(ptr ptr ptr ptr long ptr)
@ stdcall ObSetSecurityObjectByPointer(ptr long ptr)
@ fastcall ObfDereferenceObject(ptr)
Modified: trunk/reactos/ntoskrnl/ob/obhandle.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ob/obhandle.c?rev…
==============================================================================
--- trunk/reactos/ntoskrnl/ob/obhandle.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ob/obhandle.c [iso-8859-1] Sat Sep 21 19:52:44 2013
@@ -3172,6 +3172,36 @@
}
/*++
+* @name ObSetHandleAttributes
+* @implemented NT5.1
+*
+* The ObSetHandleAttributes routine <FILLMEIN>
+*
+* @param Handle
+* <FILLMEIN>.
+*
+* @param HandleFlags
+* <FILLMEIN>.
+*
+* @param PreviousMode
+* <FILLMEIN>.
+*
+* @return <FILLMEIN>.
+*
+* @remarks None.
+*
+*--*/
+NTSTATUS
+NTAPI
+ObSetHandleAttributes(IN HANDLE Handle,
+ IN POBJECT_HANDLE_ATTRIBUTE_INFORMATION HandleFlags,
+ IN KPROCESSOR_MODE PreviousMode)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+/*++
* @name ObCloseHandle
* @implemented NT5.1
*
Modified: trunk/reactos/ntoskrnl/ob/oblife.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ob/oblife.c?rev=6…
==============================================================================
--- trunk/reactos/ntoskrnl/ob/oblife.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ob/oblife.c [iso-8859-1] Sat Sep 21 19:52:44 2013
@@ -1271,6 +1271,14 @@
VOID
NTAPI
+ObDeleteCapturedInsertInfo(IN PVOID Object)
+{
+ UNIMPLEMENTED;
+ return;
+}
+
+VOID
+NTAPI
ObpDeleteObjectType(IN PVOID Object)
{
ULONG i;