Shell32NotifyIconGetRect(NotifyIconIdentifier, NativeRectangle) Method

Gets the screen coordinates of the bounding rectangle of a notification icon.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Shell32.dll", EntryPoint = "Shell_NotifyIconGetRect", 
	SetLastError = true)]
public static int NotifyIconGetRect(
	in NotifyIconIdentifier refIdentifier,
	out NativeRectangle refIconLocation
)

Parameters

refIdentifier  NotifyIconIdentifier
Pointer to a NotifyIconIdentifier structure that identifies the icon.
refIconLocation  NativeRectangle
Pointer to a NativeRectangle structure that, when this function returns successfully, receives the coordinates of the icon.

Return Value

Int32
If this function succeeds, it returns S_OK. Otherwise, it returns an HResult error code.

Remarks

See Also