winapi - What would be an alternative for parameters? -


we may have used (sooner or later) parameters define how our application should start or add more infos it. either can use lpparameters/lpcommandline in shellexecute(ex)/createprocess or use in direct call in cmd myapplication.exe -parameter1 -parameter2 -n.

sometimes there conflicts applications use same parameter names different purposes or nowadays can see parameters have been used application. wondering if possible use different method on how add more infos application before starts (like parameters). don't know pe system (yet), wondering if possible use createprocess api , start application suspended - write/change/modify (with writeprocessmemory) offset of constant (or var) have declared in sourcecode (or that...) , resume it.

i'm sure possible comes questions like:

  1. how/where can offset of constant pe file?
  2. what happens if file packed/crypted?
  3. many more

so final question - alternative parameters? (maybe based on idea?!)

there other ways pass data new process when starts running without resorting hacking memory beforehand.

how pass lot of data process when starts up?

undocumented , hard-to-find information regarding createprocess api call (scroll down "pass arbitrary data child process!" section)


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -