7 writes to _iconData
aspire-tray (7)
TrayApplication.cs (5)
156_iconData = new NativeMethods.NotifyIconData 230if (NativeMethods.ShellNotifyIcon(NativeMethods.NimAdd, ref _iconData) == 0) 240if (NativeMethods.ShellNotifyIcon(NativeMethods.NimSetVersion, ref _iconData) == 0) 263if (NativeMethods.ShellNotifyIcon(NativeMethods.NimModify, ref _iconData) == 0) 493Cleanup(NativeMethods.ShellNotifyIcon(NativeMethods.NimDelete, ref _iconData) != 0, "Shell_NotifyIconW(NIM_DELETE)");
TrayApplication.Icons.cs (1)
23if (_iconAdded && NativeMethods.ShellNotifyIcon(NativeMethods.NimModify, ref _iconData) == 0)
TrayApplication.NativeSmoke.cs (1)
407NativeCallException.Require(NativeMethods.ShellNotifyIcon(NativeMethods.NimDelete, ref _iconData) != 0, "Shell_NotifyIconW(smoke delete)");
9 references to _iconData
aspire-tray (9)
TrayApplication.cs (2)
234Program.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); 16fixed (char* tip = _iconData.Tip)
TrayApplication.NativeSmoke.cs (5)
15internal nint IconForSmoke => _iconData.Icon; 25Flags = _iconData.Flags, 26CallbackMessage = _iconData.CallbackMessage, 426NativeSmokeHarness.Require(_iconAdded && _iconData.Icon == _artwork!.TrayIcon(TrayIconStatusRules.Get(state)), 445NativeSmokeHarness.Require(_iconData.CallbackMessage == NativeMethods.TrayCallback, "The icon must report activations to the panel.");