The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: Astro on January 19, 2010, 12:35:54 AM

Title: Build WDM binary - get .EXE instead??
Post by: Astro on January 19, 2010, 12:35:54 AM
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.
Title: Re: Build WDM binary - get .EXE instead??
Post by: UtillMasm on January 19, 2010, 07:32:54 AM
 :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.
Title: Re: Build WDM binary - get .EXE instead??
Post by: Astro on January 19, 2010, 09:37:39 AM
 :U

Thanks!

Best regards,
Robin.
Title: Re: Build WDM binary - get .EXE instead??
Post by: UtillMasm on January 20, 2010, 05:15:39 AM
 :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
Title: Re: Build WDM binary - get .EXE instead??
Post by: Astro on January 22, 2010, 12:04:56 PM
Quote/base:0x10000 /align:32
Are these options required or just recommended?

Best regards,
Robin.