GetAltTabInfo

[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Ansi)]
public static extern bool GetAltTabInfoA(IntPtr hwnd,
   int iItem,
   ref ALTTABINFO pati,
   StringBuilder pszItemText,
   uint cchItemText
);

Microsoft documentation: Link

Last updated