V
V
v0lume2015-01-12 01:35:02
C++ / C#
v0lume, 2015-01-12 01:35:02

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

1 answer(s)
S
Sergey Pastukhov, 2015-01-12
@Getman_s

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 question

Ask a Question

731 491 924 answers to any question