uipi

How to send input to cmd when cmd is running as administrator?

∥☆過路亽.° 提交于 2021-01-23 07:53:25
问题 I created an application that sends keyboard input to cmd.exe . This works when running cmd as a normal user but fails when cmd is run as Administrator. This is my code: Var Wnd:hwnd; begin wnd:=FindWindow('ConsoleWindowClass',0); if wnd <> 0 then begin setforegroundWindow(wnd); keybd_event(Ord('A'),0,0,0); end; end; Notice that ConsoleWindowClass is the class name of cmd . How can I send input to cmd when cmd is running as administrator? 回答1: How can I type with this code inside cmd when cmd

Considerations when installing a desktop WPF app with uiAccess=True

二次信任 提交于 2019-12-23 07:40:09
问题 Background: I have a requirement to create a dimming effect on another monitor. I think I solved it by using a WPF Window that takes up the entire screen dimensions with Topmost and AllowsTransparency = True. It has an inner black glow effect and has the style WS_EX_TRANSPARENT | WS_EX_TOOLWINDOW applied to it (among other things) to allow users to click through to the apps behind it. I monitor for EVENT_OBJECT_REORDER events in Windows and call SetWindowPos to force the Topmost state above

Considerations when installing a desktop WPF app with uiAccess=True

半世苍凉 提交于 2019-12-23 07:40:05
问题 Background: I have a requirement to create a dimming effect on another monitor. I think I solved it by using a WPF Window that takes up the entire screen dimensions with Topmost and AllowsTransparency = True. It has an inner black glow effect and has the style WS_EX_TRANSPARENT | WS_EX_TOOLWINDOW applied to it (among other things) to allow users to click through to the apps behind it. I monitor for EVENT_OBJECT_REORDER events in Windows and call SetWindowPos to force the Topmost state above

Cross-process PostMessage, UIPI restrictions and UIAccess=”true”

时光毁灭记忆、已成空白 提交于 2019-12-11 01:47:54
问题 For security reasons the UI module for my application runs with a high mandatory integrity level. Everything in it works great, except one thing. For compatibility with older versions I need to be able to let users issue command line calls to the UI module. At the moment this mechanism works as such: The shortcut from Windows Explorer calls my module, say as such: path-to-module\module.exe -op="a, s, r" When module.exe process parses this command line it then locates the running copy of UI

How to receive keyboard input from application with admin privileges to a non-admin application?

你说的曾经没有我的故事 提交于 2019-12-10 12:36:16
问题 I have programmed an application that has an overlay-kind of window that can be shown and hidden via hotkey while another application has the focus. Said other application is a DirectX game that runs with admin privileges. I have already tried 3 possible solutions to get notified when my hotkey is pressed in the other application, 2 of them kind of work, but require my application to have administrative privileges too. That is kind of acceptable, but I'd much rather have a solution that does

Access to external window handles

流过昼夜 提交于 2019-12-05 05:50:43
问题 I am having a problem with the program I am currently working on. It is caused by the increased security in vista/Windows 7, specifically the UIPI which prevents a window with a lower integrity level 'talking' to a higher one. In my case, i am wanting to tell the window with a high Integrity level to move into our application, It works flawlessly on XP or windows 7 with the security off. I have tried setting the HWND of the higher IL window directly, rather than using the findwindow()

Access to external window handles

ぃ、小莉子 提交于 2019-12-03 22:16:00
I am having a problem with the program I am currently working on. It is caused by the increased security in vista/Windows 7, specifically the UIPI which prevents a window with a lower integrity level 'talking' to a higher one. In my case, i am wanting to tell the window with a high Integrity level to move into our application, It works flawlessly on XP or windows 7 with the security off. I have tried setting the HWND of the higher IL window directly, rather than using the findwindow() function, this works fine but the program then fails when trying to move it or generally interact with it. The