title: How to record a serial number in an executable?
body: <p>I am trying to secure an application to only run from a specific USB disk.
  I have code to get the serial number from the device, but the only way I can make this work the way I want to is to manually code the serial number into the binary. 
  Is there a way I could make a stub application that would modify the existing binary to insert the serial number into it after it's compiled? 
  I've seen this done in C++ in the past, but that was a long time ago and I cant quite remember how we did it back then. </p>