PostMessage return access denied

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hello,
I've started osk.exe in other process using "CreateProcess" and I want
to terminate it by posting a WM_QUIT message to it. Earlier I used to
pass NULL in "SECURITY_ATTRIBUTES" parameter but after reading
documentation about Vista I added "GENERIC_ALL" ACE in ACL, which I'm
using in SECURITY_ATTRIBUTES. I'm still get access denied error. Could
some one please expaing how I can terminate the process in Vista?

Regards,
Gurmit

.


Quantcast