MCPcopy Create free account
hub / github.com/NullTerminatorr/NullHook / FrameRect

Method FrameRect

KernelCheatYT/hook.cpp:115–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115INT 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected