| 113 | } |
| 114 | |
| 115 | INT nullhook::FrameRect(HDC hDC, CONST RECT* lprc, HBRUSH hbr, int thickness) |
| 116 | { |
| 117 | HBRUSH oldbrush; |
| 118 | RECT r = *lprc; |
| 119 | |
| 120 | if (!(oldbrush = GdiSelectBrush(hDC, hbr))) return 0; |
| 121 | |
| 122 | NtGdiPatBlt(hDC, r.left, r.top, thickness, r.bottom - r.top, PATCOPY); |
| 123 | NtGdiPatBlt(hDC, r.right - thickness, r.top, thickness, r.bottom - r.top, PATCOPY); |
| 124 | NtGdiPatBlt(hDC, r.left, r.top, r.right - r.left, thickness, PATCOPY); |
| 125 | NtGdiPatBlt(hDC, r.left, r.bottom - thickness, r.right - r.left, thickness, PATCOPY); |
| 126 | |
| 127 | GdiSelectBrush(hDC, oldbrush); |
| 128 | return TRUE; |
| 129 | } |
nothing calls this directly
no outgoing calls
no test coverage detected