Getting ID of thread witch uses specific dll file
Posted: May 7, 2008 @ 4:07pm
Hello all.
What is the problem:
There is a process. Process has a number of threads. Several of these threads uses a dll. I need to get IDs of theads which uses this dll.
How it possible to do?
I need to do it for Toshiba G900 communicator - it has terrible button delay. But if to increase thread prior, which uses driver DLL, this delay just disappears.
(process name is gwes.exe, dll name is mainstoneii_keypad_us.dll)
I tried to do this using toolhelp function Module32First and Module32Next functions, but it looks like they don't associate modules and threads.
Though MSDN says that : This function retrieves information about the next module associated with a process or thread.
I can't understand - am I wrong somewhere or problem is somewhere else?
What is the problem:
There is a process. Process has a number of threads. Several of these threads uses a dll. I need to get IDs of theads which uses this dll.
How it possible to do?
I need to do it for Toshiba G900 communicator - it has terrible button delay. But if to increase thread prior, which uses driver DLL, this delay just disappears.
(process name is gwes.exe, dll name is mainstoneii_keypad_us.dll)
I tried to do this using toolhelp function Module32First and Module32Next functions, but it looks like they don't associate modules and threads.
Though MSDN says that : This function retrieves information about the next module associated with a process or thread.
I can't understand - am I wrong somewhere or problem is somewhere else?