home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 12 / CD_ASCQ_12_0294.iso / maj / 2196 / markexe.doc < prev    next >
Text File  |  1994-02-12  |  4KB  |  101 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.                         Protect! EXE/COM v.5.0
  7.                              MarkEXE v.2.0
  8.                       (C) 1993,1994 Jeremy Lilley
  9.                           All Rights Reserved
  10.  
  11.  
  12.         MarkEXE is a simple utility  that imbeds a copyright (or
  13. other  message)  at the  beginning of  an EXE  file.  It  has  2
  14. parameters:
  15.  
  16.                 MarkEXE [ProgName[.EXE]] [Message.Msg]
  17.  
  18.         To put the message in MyProg.Msg at the beginning of
  19. MyProg.EXE, you could do the following:
  20.  
  21.                 MarkEXE MyProg MyProg.Msg
  22.  
  23.  
  24.         MarkEXE v.2.0 was designed for use with Protect!, but it
  25. can be used with other EXE files (but occasionally it won't work
  26. correctly with non-Protected files).  The message file can be up
  27. to 4k in length,  and it is placed as  close as it can safely be
  28. placed to the beginning of the EXE. It will usually not increase
  29. the size of the EXE if there is unused header room,  but it will
  30. expand  the EXE  if needed.  NOTE:  Protect!  will not  detect a
  31. change in this copyright message because it is in the header and
  32. not encrypted.
  33.  
  34.         Before  I say too  much more,  let me explain  what this
  35. imbedded  copyright message is.  MarkEXE will place the contents
  36. of the message file  toward the beginning  of the EXE  file in a
  37. way that it is  visible but doesn't  affect the operation of the
  38. EXE file.  This copyright message is not displayed,  but you can
  39. see  it  from  hex  editors,  file  viewers,  and even  the TYPE
  40. command.  For example, after MyProg.EXE has a  copyright message
  41. imbedded on it:
  42.  
  43.                 C:\>TYPE MyProg.EXE
  44.  
  45.                         MyProg (C) 1994 John Doe Enterprises
  46.  
  47.  
  48.         The  message is  also  visible  from hex  editors,  file
  49. viewers, etc.  There is nothing  monumental about  this utility,
  50. but it can  add a nice  touch to an EXE  and it usually  doesn't
  51. increase the size of the EXE. 
  52.  
  53.         MarkEXE  doesn't  make a  backup  file,  but  it usually
  54. doesn't cause incompatibilities.  Use of MarkEXE  constitutes to
  55. agreeing  with the  Protect! EXE/COM  v.5.0  license  agreement.
  56. MarkEXE  *must* be  distributed  with  the rest of  the Protect!
  57. v.5.0 files. Your registration of Protect! gets you a registered
  58. copy of  MarkEXE.  You must  be a registered  user of MarkEXE to
  59. distribute files Marked with it.  If MarkEXE works, it will just
  60. add  another frill  to your EXE files,  and if it doesn't or you
  61. can't use it, it's not the end of everything!
  62.  
  63.  
  64.                                                                 Page 2
  65.  
  66.  
  67.  
  68.  
  69.         The first 32  bytes of the EXE file  are needed  to tell
  70. the operating system how much memory  it needs to allocate,  the
  71. starting stack, entry point,  and other  important loading data,
  72. so  the  copyright  message  can't be  put  there.  MarkEXE will
  73. usually  be able  to put the  message right  after the  first 32
  74. bytes, but not if you have  unresolved relocation pointers (only
  75. if you didn't run Protect! on the file). You may want to put the
  76. ANSI clear screen sequence  (something like ESC[2J) right before
  77. the beginning of the message.  If the user has ANSI, it lets him
  78. just see your  message,  and if he doesn't,  the escape sequence
  79. just  adds a  few more  "garbage"  characters  to the beginning.
  80. (there are already 32 garbage characters,so why not add 4 more?)
  81. MarkEXE appends an EOF character  to the end of your  message so
  82. that no more is displayed after the message. None of this should
  83. affect the operation of your program.
  84.  
  85.         For  those  who  remember,  I wrote  MarkEXE v.1.0  as a
  86. freeware  utility almost  two months before  Protect! v.1.0  was
  87. completed.  The original version served as an exercise for me to
  88. learn the EXE header  and EXE file structure.  At first it was a
  89. struggle  to make a  security envelope  and to  modify EXE files
  90. successfully,  but now I guess it's just a matter of adding more
  91. and more  security and speed.  I'd like to create a  Windows (R)
  92. version of Protect!,  but until I understand the Windows EXE API
  93. a little better, it'll be a while.
  94.  
  95.  
  96.                         Jeremy Lilley
  97.                         Re: Protect! EXE/COM
  98.                         2711 Oakview Circle
  99.                         Medford, OR 97504
  100.  
  101.