c++ - Can we pass data to DLLMain before it gets hooked? -


when process abc.cpp hooks dllmain, executes dll_process_attach. can pass data or parameter dllmain, can used inside dll_process_attach.

as of using setprop , getprop of window api share data, while considering desktop window parent window. not sure pros , cons of approach.

thanks in advance

as far know can not pass parameter when attaching. can set environment variable, use registry...an ini file if want old-fashioned :-)

or, can have function in dll called after loaded, , pass information parameter.

if none of these solutions address problem, please explain trying accomplish, can better.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -