home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / LordLucifer / win32asm / files / win32asm.exe / Win32ASM / Win32DLL / win32dll.bat < prev    next >
Encoding:
DOS Batch File  |  1997-11-10  |  1.9 KB  |  50 lines

  1. @Echo.
  2. @Echo This assumes:
  3. @Echo - The Win32ASM tree has been expanded under the root of the
  4. @Echo   current drive,
  5. @Echo - ml and link are somewhere in the path,
  6. @Echo - The Win32sdk import lib files are on the current drive
  7. @Echo   at \Win32SDK\lib
  8. @Echo
  9. @Echo N.B.: No error code checking in the .BAT file, nothing.
  10. @Echo       This is just a brute force example, and I hope you'll use
  11. @Echo       better tools than batch files in the end!
  12. @Echo.
  13. @Echo.
  14. @Echo About to Assemble / Link the DLL first, ...
  15. @Pause
  16. @Echo.
  17. ml /I\Win32ASM\ASMInc /coff /Zi /W3 /Fl /Sn /Sc /Cp /c win32dll.asm
  18. @Echo.
  19.  
  20. @Echo: Note: If using MASM 6.12, we don't need the link parm /ENTRY:DLLEntryPoint as long as we defined
  21. @Echo:       an END DLLEntryPoint directive at the end of the module containing the DLL entry point.
  22.  
  23. link /DLL /SUBSYSTEM:CONSOLE /DEBUG /DEBUGTYPE:CV /PDB:none /MAP /LIBPATH:\win32sdk\lib /DEF:win32dll.def /WARN:3 /OUT:win32dll.dll win32dll.obj
  24. @Echo.
  25. @Echo.
  26. @Echo ... now about to assemble / link the DDL test program.
  27. @Pause
  28. @Echo.
  29. ml  /I\win32ASM\ASMInc /coff /Zi /W3 /Fl /Sn /Sc /Cp /c win32dlltest.asm
  30. @Echo.
  31.  
  32. @Echo: Note: If using MASM 6.12, we don't need the link parm /ENTRY:Start as long as we defined
  33. @Echo:       an END Start directive at the end of the module containing the .EXE entry point.
  34.  
  35. link /SUBSYSTEM:CONSOLE /DEBUG /DEBUGTYPE:CV /PDB:none /MAP /LIBPATH:\win32sdk\lib /WARN:3 /OUT:win32dlltest.exe win32dlltest.obj
  36. @Echo.
  37. @Echo.
  38. @Echo Hold on to your seat: About to launch the test program...
  39. @Pause
  40. @Echo.
  41. @Echo.
  42. Win32DLLTest
  43. @Echo.
  44. @Echo ... Done.
  45. @Echo The .EXE and DLL might look big, but remember full debugging is ON.
  46. @Echo Remove /DEBUG and /DEBUGTYPE to get slim executables.
  47. @Echo The result will shrink to 3/4K files. This might still be more than
  48. @Echo you expected, but there is a fixed overhead in the .PE file format.
  49. @Pause
  50.