2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS kernel
4 * FILE: ntoskrnl/io/iomgr.c
5 * PURPOSE: Initializes the io manager
6 * PROGRAMMER: David Welch (welch@mcmail.com)
11 /* INCLUDES ****************************************************************/
14 #include <ddk/ntddk.h>
15 #include <internal/kernel.h>
16 #include <internal/objmgr.h>
18 /* GLOBALS *******************************************************************/
20 OBJECT_TYPE DeviceObjectType
= {{NULL
,0,0},
25 sizeof(DEVICE_OBJECT
),
38 /* FUNCTIONS ****************************************************************/
42 OBJECT_ATTRIBUTES attr
;
44 UNICODE_STRING string
;
47 ObRegisterType(OBJTYP_DEVICE
,&DeviceObjectType
);
49 RtlInitAnsiString(&astring
,"\\Device");
50 RtlAnsiStringToUnicodeString(&string
,&astring
,TRUE
);
51 InitializeObjectAttributes(&attr
,&string
,0,NULL
,NULL
);
52 ZwCreateDirectoryObject(&handle
,0,&attr
);
54 IoInitCancelHandling();