Shell32NotifyIconGetRect(NotifyIconIdentifier, Rectangle) Method
Gets the screen coordinates of the bounding rectangle of a notification icon.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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 Rectangle refIconLocation
)
<DllImportAttribute("Shell32.dll", EntryPoint := "Shell_NotifyIconGetRect",
SetLastError := true>]
Public Shared Function NotifyIconGetRect (
ByRef refIdentifier As NotifyIconIdentifier,
<OutAttribute> ByRef refIconLocation As Rectangle
) As Integer
Dim refIdentifier As NotifyIconIdentifier
Dim refIconLocation As Rectangle
Dim returnValue As Integer
returnValue = Shell32.NotifyIconGetRect(refIdentifier,
refIconLocation)
public:
[DllImportAttribute(L"Shell32.dll", EntryPoint = L"Shell_NotifyIconGetRect",
SetLastError = true)]
static int NotifyIconGetRect(
[InAttribute] NotifyIconIdentifier% refIdentifier,
[OutAttribute] Rectangle% refIconLocation
)
[<DllImportAttribute("Shell32.dll", EntryPoint = "Shell_NotifyIconGetRect",
SetLastError = true)>]
static member NotifyIconGetRect :
refIdentifier : NotifyIconIdentifier byref *
refIconLocation : Rectangle byref -> int
No code example is currently available or this language may not be supported.
- refIdentifier NotifyIconIdentifier
-
Pointer to a NotifyIconIdentifier structure that identifies the icon.
- refIconLocation Rectangle
-
Pointer to a Rectangle structure that, when this function returns successfully,
receives the coordinates of the icon.
Int32
If this function succeeds, it returns
S_OK. Otherwise, it returns an
HResult error code.