News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Build WDM binary - get .EXE instead??

Started by Astro, January 19, 2010, 12:35:54 AM

Previous topic - Next topic

Astro

Hi,

Maybe I just need to rename the file, but when I build with the following options:

c:\masm32\bin\ml /c /coff /Cp %1.asm
c:\masm32\bin\link /DRIVER:WDM /SUBSYSTEM:NATIVE /ENTRY:DriverEntry /LIBPATH:c:\masm32\lib %1.obj


I get an .EXE out instead. Is this correct? I need .SYS .

Best regards,
Robin.

UtillMasm

 :dance:
.EXE is right, but .SYS is a old name.

Sfloppy.sys
config.sys

so, SYS is a really good name. anyway MS just like it.

Astro


UtillMasm

 :wink
MyDriver.cmd@echo off
\masm32\bin\ml.exe /nologo /c /coff /FoMyDriver.obj MyDriver.asm
\masm32\bin\link.exe /nologo /driver /base:0x10000 /align:32 /out:MyDriver.sys /subsystem:native MyDriver.obj
pause

UsageWin+R -> C:\MyDriver.cmd -> Enter

Astro

Quote/base:0x10000 /align:32
Are these options required or just recommended?

Best regards,
Robin.