Answer the question
In order to leave comments, you need to log in
How to call a method of one thread from another?
There is a 1st thread (ala DLL attack namely DllMain) and it creates another thread through _beginthread.
And the WndProc function is also hooked.
WndProc is called in the first thread (the same as DllMain) and here is the question.
How to call a function from WndProc so that it is executed by the thread that was created?
It's just that if it's direct, it will crash. I tried to make a BOOL variable and change it in 1 thread and check its value in the second one. It works somehow, but it's buggy and it seems like shit code.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question