RegisterHotKey

[DllImport("user32.dll", SetLastError = true)]
public static extern bool RegisterHotKey(
   IntPtr hWnd,
   int id,
   uint fsModifiers,
   uint vk
);

Microsoft documentation: Link

Last updated