|| Rookit - Notes ||
1. The batch file which can compile the *.asm file to *.sys file. It is convenience as you not need to remember the command of masm32.
a. Skeleton:
\\---------------------------------------------------------\\
;@echo off
;goto make
.386
.model flat, stdcall
option casemap:none
include \masm32\include\kmd\w2k\ntstatus.inc
include \masm32\include\kmd\w2k\ntddk.inc
.code
DriverEntry proc pDriverObject:PDRIVER_OBJECT, pusRegistryPath:PUNICODE_STRING
mov eax, STATUS_DEVICE_CONFIGURATION_ERROR
ret
DriverEntry endp
end DriverEntry
:make
set drv=simplest
\masm32\bin\ml /nologo /c /coff %drv%.bat
\masm32\bin\link /nologo /driver /base:0x10000 /align:32 /out:%drv%.sys /subsystem:native %drv%.obj
del %drv%.obj
echo.
pause\\-------------------------------------------------------------------------\\
b. Save as simplest.bat and double click on the batch file.
Note: The code from four-f, copyright reserve to the author.