winapi - Combine x86 and x64 executables in single executable (like Sysinternals tools) -


i writing visual c++ program in pure win32 api. per understanding, need separately compile , generate executable x86 , x64 architecture.

how combine them single executable , emit x64 @ runtime? have seen sysinternals tools doing same , don't know how done programmatically.

do have include x64 version resource x86 , write filesystem , createprocess ?

any pointers ?

yes, embed operating specific driver resource. here's screenshot visual studio after using file + open + file open handle.exe utility:

alt text

not sure looks cover windows 9x, 32-bit , 64-bit. next thing they'd use resource api functions (findresource, sizeofresource, lockresource) , writefile() resource content file in writable directory. load driver createservice , startservice.

the main program x86 runs on version of windows. generating binaries @ runtime isn't customer friendly thing btw, (and virus scanner) know came where.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -