I have windows forms application that is run as administrator, but it cannot receive any inputs from other applications that are run without administrator priviliges. How can I enforce this application to receive any inputs or messages from other lower modes applications ?
Asked
Active
Viewed 33 times
0
-
What do you mean by "receive inputs or messages"? – gunr2171 Jul 19 '22 at 23:39
-
2[ChangeWindowMessageFilterEx](https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-changewindowmessagefilterex) – Jimi Jul 19 '22 at 23:45
-
;If the lower privileges application is typing characters as in the following sample code sendKeys.Send("Hello"); – Ashraf Esmail Omer Jul 19 '22 at 23:55
-
yes , but how can I get the full syntax of ChangeWindowMessageFilterEx() ? – Ashraf Esmail Omer Jul 20 '22 at 00:07
-
@Jimi Please help me with a living example in separate answer for the function ChangeWindowMessageFilterEx – Ashraf Esmail Omer Jul 20 '22 at 02:15
-
Here is an example: https://github.com/microsoft/Windows-classic-samples/tree/main/Samples/Win7Samples/winui/CWMFEx – Klaus Gütter Jul 20 '22 at 05:32