A forum for reverse engineering, OS internals and malware analysis 

Forum for discussion about kernel-mode development.
 #8291  by R00tKit
 Sat Aug 27, 2011 9:35 am
hi
i hook open process and deny any open from my program UI except PROCESS_QUERY_INFORMATION

it work very well in windows Xp but in windows seven my program UI themes dont work ( it get in classic mode )

i detect "Themes" service in svchost is responsible for themeing , it work with open our process by Write privilege

how know if this service in svchost call OpenProcess for allow it and deny other service

any suggestion

regard
 #8297  by R00tKit
 Sat Aug 27, 2011 12:09 pm
I can see that current process is "svchost.exe". Now I need to know which service inside svchost is calling the hooked function, especially, I want to know when Themes services is calling my hooked function.
 #8299  by redp
 Sat Aug 27, 2011 12:26 pm
geek1982 wrote:I can see that current process is "svchost.exe". Now I need to know which service inside svchost is calling the hooked function, especially, I want to know when Themes services is calling my hooked function.
TEB.SubProcessTag ? Check this