Patches a binary according to the project's *.mes file.

madExceptPatch BinaryFile [Path\[MesFile]] [Path\[MapFile]] [/options]

  BinaryFile :  "some.exe/dll/bpl" file, full path mandatory
  MesFile    :  "some.mes"         file, full path optional
  MapFile    :  "some.map"         file, full path optional

  /options   :  overwrite settings stored in mes file
    /handleExceptions=0/1
    /appendMapFileToBinary=0/1
    /freezeTimeout=ms

Example 1:
madExceptPatch "C:\Dir1\Test.exe"
  -> mes file is guessed at "C:\Dir1\Test.mes"
  -> map file is guessed at "C:\Dir1\Test.map"

Example 2:
madExceptPatch "C:\Dir1\Test.exe" "AllProjects.mes"
  -> mes file is guessed at "C:\Dir1\AllProjects.mes"
  -> map file is guessed at "C:\Dir1\Test.map"

Example 3:
madExceptPatch "C:\Dir1\Test.exe" "C:\Generic\AllProjects.mes"
  -> map file is guessed at "C:\Dir1\Test.map"

If no *.mes file is found, the default settings are used.

BCB users please give in the .tds file instead of the map file.

exitCode:
0 = success
1 = file not found
2 = no map file found
3 = no binary file specified
4 = incompatible module initialization code
5 = patching of unit initialization order failed
6 = the specified version variable was not found
7 = please add madExcept to the uses clause
8 = binary is in use
9 = map file couldn't be loaded
