26 references to Cleanup
aspire-tray (26)
TrayApplication.Clipboard.cs (1)
48
Cleanup
(NativeMethods.GlobalFree(memory) == 0, "GlobalFree(clipboard)");
TrayApplication.cs (7)
440
Cleanup
(NativeMethods.EndMenu() != 0, "EndMenu");
450
Cleanup
(NativeMethods.PostMessage(popup, NativeMethods.WmClose, 0, 0) != 0, "PostMessageW(close dialog)");
497
Cleanup
(NativeMethods.KillTimer(_window, TimerId) != 0, "KillTimer");
501
Cleanup
(NativeMethods.ShellNotifyIcon(NativeMethods.NimDelete, ref _iconData) != 0, "Shell_NotifyIconW(NIM_DELETE)");
517
Cleanup
(false, "DestroyWindow");
524
Cleanup
(false, "UnregisterClassW");
530
Cleanup
(NativeMethods.SetThreadDpiAwarenessContext(_previousDpiContext) != 0, "SetThreadDpiAwarenessContext(restore)");
TrayApplication.Icons.cs (9)
182
_owner.
Cleanup
(NativeMethods.DeleteObject(mask) != 0, "DeleteObject(icon mask)");
196
_owner.
Cleanup
(NativeMethods.DestroyIcon(icon) != 0, "DestroyIcon");
295
_owner.
Cleanup
(NativeMethods.SelectObject(dc, previousFont) != 0, "SelectObject(restore menu font)");
299
_owner.
Cleanup
(NativeMethods.SelectObject(dc, previousBitmap) != 0, "SelectObject(restore menu bitmap)");
301
_owner.
Cleanup
(NativeMethods.DeleteDC(dc) != 0, "DeleteDC(menu glyph)");
304
_owner.
Cleanup
(NativeMethods.DeleteObject(font) != 0, "DeleteObject(menu font)");
349
_owner.
Cleanup
(NativeMethods.SelectObject(dc, previous) != 0, "SelectObject(restore)");
351
_owner.
Cleanup
(NativeMethods.DeleteDC(dc) != 0, "DeleteDC");
359
_owner.
Cleanup
(NativeMethods.DeleteObject(Handle) != 0, "DeleteObject(canvas)");
TrayApplication.Menus.cs (1)
453
owner.
Cleanup
(NativeMethods.DestroyMenu(Handle) != 0, "DestroyMenu");
TrayApplication.Settings.cs (2)
260
Cleanup
(false, "UnhookWindowsHookEx(Settings)");
383
Cleanup
(NativeMethods.DestroyIcon(_settingsIcon) != 0, "DestroyIcon(Settings)");
TrayApplication.SettingsAppearance.cs (5)
28
Cleanup
(NativeMethods.DeleteObject(_settingsHeadingFont) != 0, "DeleteObject(Settings font)");
39
Cleanup
(NativeMethods.DestroyIcon(_settingsIcon) != 0, "DestroyIcon(Settings logo)");
214
Cleanup
(NativeMethods.SelectObject(dc, previous) != 0, "SelectObject(Settings measure restore)");
216
Cleanup
(NativeMethods.ReleaseDC(_settingsWindow, dc) != 0, "ReleaseDC(Settings measure)");
224
Cleanup
(NativeMethods.DeleteObject(_settingsHeadingFont) != 0, "DeleteObject(Settings font)");
TrayApplication.Tooltips.cs (1)
168
Cleanup
(false, "DestroyWindow(menu tooltip)");