add_subdirectory(example)
add_subdirectory(kernel32)
add_subdirectory(ntos_io)
+add_subdirectory(ntos_po)
add_subdirectory(tcpip)
list(APPEND COMMON_SOURCE
npfs/NpfsHelpers.c
npfs/NpfsReadWrite.c
npfs/NpfsVolumeInfo.c
+ ntos_cm/CmSecurity.c
ntos_ex/ExCallback.c
ntos_ex/ExDoubleList.c
ntos_ex/ExFastMutex.c
ntos_ke/KeProcessor.c
ntos_ke/KeSpinLock.c
ntos_ke/KeTimer.c
+ ntos_mm/MmMdl.c
+ ntos_mm/MmReservedMapping.c
ntos_mm/MmSection.c
ntos_mm/ZwAllocateVirtualMemory.c
ntos_mm/ZwCreateSection.c
ntos_mm/ZwMapViewOfSection.c
+ ntos_ob/ObHandle.c
ntos_ob/ObReference.c
ntos_ob/ObType.c
ntos_ob/ObTypes.c
+ ntos_ob/ObWait.c
ntos_ps/PsNotify.c
ntos_se/SeHelpers.c
ntos_se/SeInheritance.c
add_library(kmtest_drv SHARED ${KMTEST_DRV_SOURCE})
set_module_type(kmtest_drv kernelmodedriver)
-target_link_libraries(kmtest_drv kmtest_printf chkstk ${PSEH_LIB})
+target_link_libraries(kmtest_drv kmtest_printf chkstk memcmp ${PSEH_LIB})
add_importlibs(kmtest_drv ntoskrnl hal)
-add_dependencies(kmtest_drv bugcodes)
+add_dependencies(kmtest_drv bugcodes xdk)
add_target_compile_definitions(kmtest_drv KMT_KERNEL_MODE NTDDI_VERSION=NTDDI_WS03SP1)
#add_pch(kmtest_drv include/kmt_test.h)
add_cd_file(TARGET kmtest_drv DESTINATION reactos/bin FOR all)
example/Example_user.c
kernel32/FindFile_user.c
+ ntos_io/IoCreateFile_user.c
ntos_io/IoDeviceObject_user.c
ntos_io/IoReadWrite_user.c
+ ntos_po/PoIrp_user.c
tcpip/TcpIp_user.c
${COMMON_SOURCE}
add_dependencies(kmtest_drivers
kmtest_drv
example_drv
+ findfile_drv
+ iocreatefile_drv
iodeviceobject_drv
iohelper_drv
ioreadwrite_drv
+ poirp_drv
tcpip_drv)
add_custom_target(kmtest_all)