Shell32NotifyIconGetRect(NotifyIconIdentifier, NativeRectangle) 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 NativeRectangle refIconLocation
)
<DllImportAttribute("Shell32.dll", EntryPoint := "Shell_NotifyIconGetRect",
SetLastError := true>]
Public Shared Function NotifyIconGetRect (
ByRef refIdentifier As NotifyIconIdentifier,
<OutAttribute> ByRef refIconLocation As NativeRectangle
) As Integer
Dim refIdentifier As NotifyIconIdentifier
Dim refIconLocation As NativeRectangle
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] NativeRectangle% refIconLocation
)
[<DllImportAttribute("Shell32.dll", EntryPoint = "Shell_NotifyIconGetRect",
SetLastError = true)>]
static member NotifyIconGetRect :
refIdentifier : NotifyIconIdentifier byref *
refIconLocation : NativeRectangle 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 NativeRectangle
-
Pointer to a NativeRectangle 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.