25 references to Cleanup
aspire-tray (25)
TrayApplication.Clipboard.cs (1)
48Cleanup(NativeMethods.GlobalFree(memory) == 0, "GlobalFree(clipboard)");
TrayApplication.cs (6)
442Cleanup(NativeMethods.PostMessage(popup, NativeMethods.WmClose, 0, 0) != 0, "PostMessageW(close dialog)"); 489Cleanup(NativeMethods.KillTimer(_window, TimerId) != 0, "KillTimer"); 493Cleanup(NativeMethods.ShellNotifyIcon(NativeMethods.NimDelete, ref _iconData) != 0, "Shell_NotifyIconW(NIM_DELETE)"); 502Cleanup(false, "DestroyWindow"); 509Cleanup(false, "UnregisterClassW"); 515Cleanup(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)
153Cleanup(NativeMethods.DeleteObject(bitmap) != 0, "DeleteObject(capture)"); 154Cleanup(NativeMethods.DeleteDC(memory) != 0, "DeleteDC(capture)");
TrayApplication.Panel.cs (11)
222Cleanup(NativeMethods.DeleteObject(region) != 0, "DeleteObject(region)"); 455Cleanup(NativeMethods.DeleteObject(bitmap) != 0, "DeleteObject(flyout bitmap)"); 457Cleanup(NativeMethods.DeleteDC(memory) != 0, "DeleteDC(flyout)"); 755Cleanup(NativeMethods.DestroyIcon(_panelLogo) != 0, "DestroyIcon(flyout logo)"); 800Cleanup(NativeMethods.DeleteObject(font) != 0, "DeleteObject(flyout font)"); 937Cleanup(NativeMethods.DestroyWindow(_panelTooltip) != 0, "DestroyWindow(flyout tooltip)"); 944Cleanup(NativeMethods.DestroyWindow(_panelWindow) != 0, "DestroyWindow(flyout)"); 949Cleanup(NativeMethods.UnregisterClass(PanelClassName, _module) != 0, "UnregisterClassW(flyout)"); 954Cleanup(NativeMethods.DeleteObject(font) != 0, "DeleteObject(flyout font)"); 959Cleanup(NativeMethods.DestroyIcon(_panelLogo) != 0, "DestroyIcon(flyout logo)"); 964Cleanup(NativeMethods.DestroyIcon(icon) != 0, "DestroyIcon(application icon)");