Changes for compiling with w32api
* include/ddk/obfuncs.h (ObCreateObject): Remove.
- * include/ntos/zwtypes.h (ObRosCreateObject):
+ * include/ntos/zwtypes.h (ObRosCreateObject): Add.
* ntoskrnl/ntoskrnl.def, ntoskrnl/ntoskrnl.edf: Export ObCreateObject@36
and ObRosCreateObject@20.
* ntoskrnl/cm/ntfunc.c, ntoskrnl/cm/registry.c, ntoskrnl/cm/regobj.c,
-/* $Id: connect.c,v 1.15 2003/01/11 15:33:49 hbirr Exp $
+/* $Id: connect.c,v 1.16 2003/06/07 12:23:14 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
/* INCLUDES *****************************************************************/
-#include <ddk/ntddk.h>
+#define NTOS_MODE_KERNEL
+#include <ntos.h>
#include <internal/ob.h>
#include <internal/port.h>
#include <internal/dbg.h>
/*
* Create a port to represent our side of the connection
*/
- Status = ObCreateObject (NULL,
+ Status = ObRosCreateObject (NULL,
PORT_ALL_ACCESS,
NULL,
ExPortType,
*/
if (AcceptIt)
{
- Status = ObCreateObject(ServerPortHandle,
+ Status = ObRosCreateObject(ServerPortHandle,
PORT_ALL_ACCESS,
NULL,
ExPortType,
-/* $Id: create.c,v 1.9 2002/09/08 10:23:32 chorns Exp $
+/* $Id: create.c,v 1.10 2003/06/07 12:23:14 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
/* INCLUDES *****************************************************************/
-#include <ddk/ntddk.h>
+#define NTOS_MODE_KERNEL
+#include <ntos.h>
#include <internal/port.h>
#include <internal/dbg.h>
return (Status);
}
/* Ask Ob to create the object */
- Status = ObCreateObject (PortHandle,
+ Status = ObRosCreateObject (PortHandle,
PORT_ALL_ACCESS,
ObjectAttributes,
ExPortType,
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: section.c,v 1.115 2003/06/07 11:34:36 chorns Exp $
+/* $Id: section.c,v 1.116 2003/06/07 12:23:14 chorns Exp $
*
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/mm/section.c
/* INCLUDES *****************************************************************/
#include <limits.h>
-#include <ddk/ntddk.h>
+#define NTOS_MODE_KERNEL
+#include <ntos.h>
#include <internal/mm.h>
#include <internal/io.h>
#include <internal/ps.h>
/*
* Create the section
*/
- Status = ObCreateObject(SectionHandle,
+ Status = ObRosCreateObject(SectionHandle,
DesiredAccess,
ObjectAttributes,
MmSectionObjectType,
/*
* Create the section
*/
- Status = ObCreateObject(SectionHandle,
+ Status = ObRosCreateObject(SectionHandle,
DesiredAccess,
ObjectAttributes,
MmSectionObjectType,
/*
* Create the section
*/
- Status = ObCreateObject(SectionHandle,
+ Status = ObRosCreateObject(SectionHandle,
DesiredAccess,
ObjectAttributes,
MmSectionObjectType,
-/* $Id: evtpair.c,v 1.13 2002/09/08 10:23:38 chorns Exp $
+/* $Id: evtpair.c,v 1.14 2003/06/07 12:23:14 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
/* INCLUDES *****************************************************************/
-#include <ddk/ntddk.h>
+#define NTOS_MODE_KERNEL
+#include <ntos.h>
#include <ntos/synch.h>
#include <limits.h>
NTSTATUS Status;
DPRINT("NtCreateEventPair()\n");
- Status = ObCreateObject(EventPairHandle,
+ Status = ObRosCreateObject(EventPairHandle,
DesiredAccess,
ObjectAttributes,
ExEventPairObjectType,
/* INCLUDES *****************************************************************/
#include <limits.h>
-#include <ddk/ntddk.h>
+#define NTOS_MODE_KERNEL
+#include <ntos.h>
#include <ntos/synch.h>
#define NDEBUG
PKMUTEX Mutant;
NTSTATUS Status;
- Status = ObCreateObject(MutantHandle,
+ Status = ObRosCreateObject(MutantHandle,
DesiredAccess,
ObjectAttributes,
ExMutantObjectType,
/* INCLUDES *****************************************************************/
#include <limits.h>
-#include <ddk/ntddk.h>
+#define NTOS_MODE_KERNEL
+#include <ntos.h>
#include <internal/id.h>
#include <ntos/synch.h>
#include <internal/pool.h>
ObjectAttributes = NULL;
}
- Status = ObCreateObject(&EventHandle,
+ Status = ObRosCreateObject(&EventHandle,
DesiredAccess,
ObjectAttributes,
ExEventObjectType,
-/* $Id: ntsem.c,v 1.17 2002/09/08 10:23:38 chorns Exp $
+/* $Id: ntsem.c,v 1.18 2003/06/07 12:23:14 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
/* INCLUDES *****************************************************************/
#include <limits.h>
-#include <ddk/ntddk.h>
+#define NTOS_MODE_KERNEL
+#include <ntos.h>
#include <ntos/synch.h>
#include <internal/pool.h>
#include <internal/ps.h>
PKSEMAPHORE Semaphore;
NTSTATUS Status;
- Status = ObCreateObject(SemaphoreHandle,
+ Status = ObRosCreateObject(SemaphoreHandle,
DesiredAccess,
ObjectAttributes,
ExSemaphoreType,
-/* $Id: nttimer.c,v 1.18 2003/06/05 23:36:48 gdalsnes Exp $
+/* $Id: nttimer.c,v 1.19 2003/06/07 12:23:14 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
/* INCLUDES *****************************************************************/
-#include <ddk/ntddk.h>
+#define NTOS_MODE_KERNEL
+#include <ntos.h>
#include <ntos/synch.h>
#include <internal/ke.h>
#include <limits.h>
NTSTATUS Status;
DPRINT("NtCreateTimer()\n");
- Status = ObCreateObject(TimerHandle,
+ Status = ObRosCreateObject(TimerHandle,
DesiredAccess,
ObjectAttributes,
ExTimerType,
/* INCLUDES *****************************************************************/
-#include <ddk/ntddk.h>
+#define NTOS_MODE_KERNEL
+#include <ntos.h>
#include <internal/mm.h>
#include <internal/ps.h>
#include <internal/pool.h>
/*
* Create the object
*/
- Status = ObCreateObject(&ProfileHandle,
+ Status = ObRosCreateObject(&ProfileHandle,
STANDARD_RIGHTS_ALL,
NULL,
ExProfileObjectType,
-/* $Id: dirobj.c,v 1.17 2003/06/02 10:03:52 ekohl Exp $
+/* $Id: dirobj.c,v 1.18 2003/06/07 12:23:14 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
/* INCLUDES ***************************************************************/
-#include <ddk/ntddk.h>
+#define NTOS_MODE_KERNEL
+#include <ntos.h>
#include <internal/ob.h>
#include <internal/io.h>
DirectoryHandle, DesiredAccess, ObjectAttributes,
ObjectAttributes->ObjectName);
- return(ObCreateObject(DirectoryHandle,
+ return(ObRosCreateObject(DirectoryHandle,
DesiredAccess,
ObjectAttributes,
ObDirectoryType,
-/* $Id: namespc.c,v 1.37 2003/05/12 13:59:09 ekohl Exp $
+/* $Id: namespc.c,v 1.38 2003/06/07 12:23:14 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
/* INCLUDES ***************************************************************/
#include <limits.h>
-#include <ddk/ntddk.h>
+#define NTOS_MODE_KERNEL
+#include <ntos.h>
#include <internal/ob.h>
#include <internal/io.h>
#include <internal/pool.h>
L"ObjectType");
/* create root directory */
- ObCreateObject(NULL,
+ ObRosCreateObject(NULL,
STANDARD_RIGHTS_REQUIRED,
NULL,
ObDirectoryType,
OBJ_PERMANENT,
NULL,
NULL);
- ObCreateObject(NULL,
+ ObRosCreateObject(NULL,
STANDARD_RIGHTS_REQUIRED,
&ObjectAttributes,
ObDirectoryType,
OBJ_PERMANENT,
NULL,
NULL);
- Status = ObCreateObject(NULL,
+ Status = ObRosCreateObject(NULL,
STANDARD_RIGHTS_REQUIRED,
&ObjectAttributes,
ObTypeObjectType,
-/* $Id: object.c,v 1.62 2003/06/02 16:49:33 ekohl Exp $
+/* $Id: object.c,v 1.63 2003/06/07 12:23:14 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
/* INCLUDES *****************************************************************/
-#include <ddk/ntddk.h>
+#define NTOS_MODE_KERNEL
+#include <ntos.h>
#include <roscfg.h>
#include <internal/ob.h>
#include <internal/ps.h>
/**********************************************************************
* NAME EXPORTED
- * ObCreateObject@36
+ * ObRosCreateObject@20
*
* DESCRIPTION
*
* ARGUMENTS
*
+ * NOTE
+ * Internal ReactOS function
* RETURN VALUE
*/
NTSTATUS STDCALL
-ObCreateObject (OUT PHANDLE Handle,
+ObRosCreateObject (OUT PHANDLE Handle,
IN ACCESS_MASK DesiredAccess,
IN POBJECT_ATTRIBUTES ObjectAttributes,
IN POBJECT_TYPE Type,
assert_irql(APC_LEVEL);
- DPRINT("ObCreateObject(Handle %x, ObjectAttributes %x, Type %x)\n",
+ DPRINT("ObRosCreateObject(Handle %x, ObjectAttributes %x, Type %x)\n",
Handle, ObjectAttributes, Type);
if (ObjectAttributes != NULL &&
return(STATUS_SUCCESS);
}
+/**********************************************************************
+ * NAME EXPORTED
+ * ObCreateObject@36
+ *
+ * DESCRIPTION
+ *
+ * ARGUMENTS
+ *
+ * RETURN VALUE
+ */
+NTSTATUS STDCALL
+ObCreateObject (IN KPROCESSOR_MODE ObjectAttributesAccessMode OPTIONAL,
+ IN POBJECT_TYPE ObjectType,
+ IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
+ IN KPROCESSOR_MODE AccessMode,
+ IN OUT PVOID ParseContext OPTIONAL,
+ IN ULONG ObjectSize,
+ IN ULONG PagedPoolCharge OPTIONAL,
+ IN ULONG NonPagedPoolCharge OPTIONAL,
+ OUT PVOID *Object)
+{
+ UNIMPLEMENTED
+ return STATUS_NOT_IMPLEMENTED;
+}
NTSTATUS STDCALL
ObReferenceObjectByPointer(IN PVOID Object,
-/* $Id: symlink.c,v 1.1 2003/02/25 16:49:08 ekohl Exp $
+/* $Id: symlink.c,v 1.2 2003/06/07 12:23:14 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
/* INCLUDES *****************************************************************/
#include <limits.h>
-#include <ddk/ntddk.h>
+#define NTOS_MODE_KERNEL
+#include <ntos.h>
#include <internal/ob.h>
#define NDEBUG
ObjectAttributes,
DeviceName);
- Status = ObCreateObject(SymbolicLinkHandle,
+ Status = ObRosCreateObject(SymbolicLinkHandle,
DesiredAccess,
ObjectAttributes,
ObSymbolicLinkType,
-/* $Id: create.c,v 1.60 2003/06/05 23:36:35 gdalsnes Exp $
+/* $Id: create.c,v 1.61 2003/06/07 12:23:14 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
/* INCLUDES ****************************************************************/
-#include <ddk/ntddk.h>
+#define NTOS_MODE_KERNEL
+#include <ntos.h>
#include <internal/ke.h>
#include <internal/ob.h>
#include <internal/ps.h>
/*
* Create and initialize thread
*/
- Status = ObCreateObject(ThreadHandle,
+ Status = ObRosCreateObject(ThreadHandle,
DesiredAccess,
ThreadAttributes,
PsThreadType,
-/* $Id: process.c,v 1.106 2003/06/05 22:45:22 gdalsnes Exp $
+/* $Id: process.c,v 1.107 2003/06/07 12:23:14 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
/* INCLUDES ******************************************************************/
#include <limits.h>
-#include <ddk/ntddk.h>
+#define NTOS_MODE_KERNEL
+#include <ntos.h>
#include <internal/ob.h>
#include <internal/mm.h>
#include <internal/ke.h>
/*
* Initialize the system process
*/
- Status = ObCreateObject(NULL,
+ Status = ObRosCreateObject(NULL,
PROCESS_ALL_ACCESS,
NULL,
PsProcessType,
return(Status);
}
- Status = ObCreateObject(ProcessHandle,
+ Status = ObRosCreateObject(ProcessHandle,
DesiredAccess,
ObjectAttributes,
PsProcessType,
if (!NT_SUCCESS(Status))
{
ObDereferenceObject(ParentProcess);
- DPRINT("ObCreateObject() = %x\n",Status);
+ DPRINT("ObRosCreateObject() = %x\n",Status);
return(Status);
}
-/* $Id: token.c,v 1.23 2003/05/31 11:10:30 ekohl Exp $
+/* $Id: token.c,v 1.24 2003/06/07 12:23:14 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
/* INCLUDES *****************************************************************/
#include <limits.h>
-#include <ddk/ntddk.h>
+#define NTOS_MODE_KERNEL
+#include <ntos.h>
#include <internal/ps.h>
#include <internal/se.h>
#include <internal/safe.h>
PACCESS_TOKEN AccessToken;
- Status = ObCreateObject(0,
+ Status = ObRosCreateObject(0,
TOKEN_ALL_ACCESS,
ObjectAttributes,
SepTokenObjectType,
(PVOID*)&AccessToken);
if (!NT_SUCCESS(Status))
{
- DPRINT1("ObCreateObject() failed (Status %lx)\n");
+ DPRINT1("ObRosCreateObject() failed (Status %lx)\n");
return(Status);
}
/*
* Initialize the token
*/
- Status = ObCreateObject(NULL,
+ Status = ObRosCreateObject(NULL,
TOKEN_ALL_ACCESS,
NULL,
SepTokenObjectType,
if (!NT_SUCCESS(Status))
return(Status);
- Status = ObCreateObject(&TokenHandle,
+ Status = ObRosCreateObject(&TokenHandle,
DesiredAccess,
ObjectAttributes,
SepTokenObjectType,
(PVOID*)&AccessToken);
if (!NT_SUCCESS(Status))
{
- DPRINT1("ObCreateObject() failed (Status %lx)\n");
+ DPRINT1("ObRosCreateObject() failed (Status %lx)\n");
return(Status);
}
/*
* Normally we would just point these members into the variable information
- * area; however, our ObCreateObject() call can't allocate a variable information
+ * area; however, our ObRosCreateObject() call can't allocate a variable information
* area, so we allocate them seperately and provide a destroy function.
*/
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: winsta.c,v 1.13 2003/05/18 17:16:17 ea Exp $
+/* $Id: winsta.c,v 1.14 2003/06/07 12:23:14 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
/* INCLUDES ******************************************************************/
-#include <ddk/ntddk.h>
+#define NTOS_MODE_KERNEL
+#include <ntos.h>
#include <ddk/ntddmou.h>
#include <win32k/win32k.h>
#include <include/winsta.h>
DPRINT("Creating window station (%wZ)\n", &WindowStationName);
- Status = ObCreateObject(&WinSta,
+ Status = ObRosCreateObject(&WinSta,
STANDARD_RIGHTS_REQUIRED,
&ObjectAttributes,
ExWindowStationObjectType,
DPRINT("Status for open operation (0x%X)\n", Status);
- Status = ObCreateObject(&Desktop,
+ Status = ObRosCreateObject(&Desktop,
STANDARD_RIGHTS_REQUIRED,
&ObjectAttributes,
ExDesktopObjectType,