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
Post a Comment