7 writes to _iconData
aspire-tray (7)
TrayApplication.cs (5)
156
_iconData
= new NativeMethods.NotifyIconData
230
if (NativeMethods.ShellNotifyIcon(NativeMethods.NimAdd, ref
_iconData
) == 0)
240
if (NativeMethods.ShellNotifyIcon(NativeMethods.NimSetVersion, ref
_iconData
) == 0)
263
if (NativeMethods.ShellNotifyIcon(NativeMethods.NimModify, ref
_iconData
) == 0)
493
Cleanup(NativeMethods.ShellNotifyIcon(NativeMethods.NimDelete, ref
_iconData
) != 0, "Shell_NotifyIconW(NIM_DELETE)");
TrayApplication.Icons.cs (1)
23
if (_iconAdded && NativeMethods.ShellNotifyIcon(NativeMethods.NimModify, ref
_iconData
) == 0)
TrayApplication.NativeSmoke.cs (1)
407
NativeCallException.Require(NativeMethods.ShellNotifyIcon(NativeMethods.NimDelete, ref
_iconData
) != 0, "Shell_NotifyIconW(smoke delete)");
9 references to _iconData
aspire-tray (9)
TrayApplication.cs (2)
234
Program.Log($"Shell_NotifyIconW(NIM_ADD) rejected the smoke icon: architecture={RuntimeInformation.ProcessArchitecture}, size={
_iconData
.Size}, attempt={_restoreAttempts + 1}.");
239
_iconData
.Version = NativeMethods.NotifyIconVersion4;
TrayApplication.Icons.cs (2)
15
_iconData
.Icon = _artwork!.TrayIcon(status);
16
fixed (char* tip =
_iconData
.Tip)
TrayApplication.NativeSmoke.cs (5)
15
internal nint IconForSmoke =>
_iconData
.Icon;
25
Flags =
_iconData
.Flags,
26
CallbackMessage =
_iconData
.CallbackMessage,
426
NativeSmokeHarness.Require(_iconAdded &&
_iconData
.Icon == _artwork!.TrayIcon(TrayIconStatusRules.Get(state)),
445
NativeSmokeHarness.Require(
_iconData
.CallbackMessage == NativeMethods.TrayCallback, "The icon must report activations to the panel.");