Shell_NotifyIconGetRect

[DllImport("shell32.dll")]
public static extern bool Shell_NotifyIconGetRect(
   ref NOTIFYICONIDENTIFIER identifier,
   out RECT iconLocation
);

Microsoft documentation: Linkarrow-up-right

Last updated