Forum > Windows

Windows low-level APIs and Security

(1/1)

ArminLinder:
Hi all,

I need to hook the keyboard to make a background process activated by a special "hotkey" keystroke. As I understand it, I need to hook SetWindowsHookExW.

I expect the Windows security/UAC fighting me.

I can sign using a Microsoft Authenticode Extended Certificate.

What I do not want is to force the customer to somehow lower Windows securitity barriers, set GPOs, or download my program through the MS store. Having the exe and executing it with admin privileges should suffice. OS: Windows 7/10/11.

Can this be done with Lazarus, and if yes, where do I find instructions how to set up anything needed, like ACLs (if applicable) or Manifests of whatever Microsoft has invented to prevent malicious software to do exactly what I intend to do.

Thnx, Armin.

Fibonacci:
https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-registerhotkey
or
https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getasynckeystate

Admin not required

ArminLinder:
Fibonaccy,

u'r genius :-)

Many thanks, Armin.

Navigation

[0] Message Index

Go to full version