25 references to Cleanup
aspire-tray (25)
TrayApplication.Clipboard.cs (1)
48
Cleanup
(NativeMethods.GlobalFree(memory) == 0, "GlobalFree(clipboard)");
TrayApplication.cs (6)
442
Cleanup
(NativeMethods.PostMessage(popup, NativeMethods.WmClose, 0, 0) != 0, "PostMessageW(close dialog)");
489
Cleanup
(NativeMethods.KillTimer(_window, TimerId) != 0, "KillTimer");
493
Cleanup
(NativeMethods.ShellNotifyIcon(NativeMethods.NimDelete, ref _iconData) != 0, "Shell_NotifyIconW(NIM_DELETE)");
502
Cleanup
(false, "DestroyWindow");
509
Cleanup
(false, "UnregisterClassW");
515
Cleanup
(NativeMethods.SetThreadDpiAwarenessContext(_previousDpiContext) != 0, "SetThreadDpiAwarenessContext(restore)");
TrayApplication.Icons.cs (5)
131
_owner.
Cleanup
(NativeMethods.DeleteObject(mask) != 0, "DeleteObject(icon mask)");
145
_owner.
Cleanup
(NativeMethods.DestroyIcon(icon) != 0, "DestroyIcon");
247
_owner.
Cleanup
(NativeMethods.SelectObject(dc, previous) != 0, "SelectObject(restore)");
249
_owner.
Cleanup
(NativeMethods.DeleteDC(dc) != 0, "DeleteDC");
257
_owner.
Cleanup
(NativeMethods.DeleteObject(Handle) != 0, "DeleteObject(canvas)");
TrayApplication.NativeSmoke.cs (2)
153
Cleanup
(NativeMethods.DeleteObject(bitmap) != 0, "DeleteObject(capture)");
154
Cleanup
(NativeMethods.DeleteDC(memory) != 0, "DeleteDC(capture)");
TrayApplication.Panel.cs (11)
222
Cleanup
(NativeMethods.DeleteObject(region) != 0, "DeleteObject(region)");
455
Cleanup
(NativeMethods.DeleteObject(bitmap) != 0, "DeleteObject(flyout bitmap)");
457
Cleanup
(NativeMethods.DeleteDC(memory) != 0, "DeleteDC(flyout)");
755
Cleanup
(NativeMethods.DestroyIcon(_panelLogo) != 0, "DestroyIcon(flyout logo)");
800
Cleanup
(NativeMethods.DeleteObject(font) != 0, "DeleteObject(flyout font)");
937
Cleanup
(NativeMethods.DestroyWindow(_panelTooltip) != 0, "DestroyWindow(flyout tooltip)");
944
Cleanup
(NativeMethods.DestroyWindow(_panelWindow) != 0, "DestroyWindow(flyout)");
949
Cleanup
(NativeMethods.UnregisterClass(PanelClassName, _module) != 0, "UnregisterClassW(flyout)");
954
Cleanup
(NativeMethods.DeleteObject(font) != 0, "DeleteObject(flyout font)");
959
Cleanup
(NativeMethods.DestroyIcon(_panelLogo) != 0, "DestroyIcon(flyout logo)");
964
Cleanup
(NativeMethods.DestroyIcon(icon) != 0, "DestroyIcon(application icon)");