[CDFS_NEW] Add a CMakeFile and a registry file. When using both, you get a driver that builds and works in ROS. Could install ROS with it! :-)

This commit is contained in:
Pierre Schweitzer 2017-11-06 19:58:49 +01:00
parent e4da7ecc50
commit 8b2fd60829
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B
2 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,37 @@
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/drivers)
list(APPEND SOURCE
allocsup.c
cachesup.c
cddata.c
cdinit.c
cleanup.c
close.c
create.c
devctrl.c
deviosup.c
dirctrl.c
dirsup.c
fileinfo.c
filobsup.c
fsctrl.c
fspdisp.c
lockctrl.c
namesup.c
pathsup.c
pnp.c
prefxsup.c
read.c
resrcsup.c
strucsup.c
verfysup.c
volinfo.c
workque.c)
add_library(cdfs SHARED ${SOURCE} cdfs.rc)
set_module_type(cdfs kernelmodedriver)
target_link_libraries(cdfs ${PSEH_LIB} memcmp)
add_importlibs(cdfs ntoskrnl hal)
add_cd_file(TARGET cdfs DESTINATION reactos/system32/drivers NO_CAB FOR all)
add_registry_inf(cdfs_reg.inf)

View file

@ -0,0 +1,7 @@
; Cdfs (ISO96660) filesystem driver
[AddReg]
HKLM,"SYSTEM\CurrentControlSet\Services\Cdfs","ErrorControl",0x00010001,0x00000000
HKLM,"SYSTEM\CurrentControlSet\Services\Cdfs","Group",0x00000000,"File System"
HKLM,"SYSTEM\CurrentControlSet\Services\Cdfs","ImagePath",0x00020000,"system32\drivers\cdfs.sys"
HKLM,"SYSTEM\CurrentControlSet\Services\Cdfs","Start",0x00010001,0x00000003
HKLM,"SYSTEM\CurrentControlSet\Services\Cdfs","Type",0x00010001,0x00000002