** Introduction This is (an incomplete) guide to writing device drivers (and other kernel extensions) for ReactOS. ** Setting up the build environment Create a new subdirectory in the modules directory and copy one of the existing module makefiles into it. Customize the makefile to compile the source files for the module. Note: generally it is not necessary to specify the compiler or compiler flags to use. ** Initializing a module On loading the kernel will call the module function PROTOTYPE: NTSTATUS ModuleEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath) PURPOSE: Initializing the module ARGUMENTS: DriverObject = Pointer to an object describing the driver RegistryPath = Currently NULL RETURNS: STATUS_SUCCESS = If the module initialized successfully