Answer the question
In order to leave comments, you need to log in
WinApi Dll Hooks how to create global variable available in hook function?
There is a program (main.c) and a dll (dllmain.c)
in the program, I call a function from a dll that sets a hook (for example, to move a window). I pass some parameter to this function (for example, int)
how to make this parameter available in the hook function?
ps
in short, what i'm doing is i need to filter the windows on which the hook is installed (log only certain windows)
Answer the question
In order to leave comments, you need to log in
This is done using a memory mapped file. How to do this is described in the article .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question