-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmythlasathome.cpp
38 lines (36 loc) · 1.26 KB
/
mythlasathome.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include <windows.h>
DWORD WINAPI thing6(LPVOID lpParam) {
while (1) {
HDC hdc = GetDC(0);
HDC hdcMem = CreateCompatibleDC(hdc);
int sw = GetSystemMetrics(0);
int sh = GetSystemMetrics(1);
HBITMAP bm = CreateCompatibleBitmap(hdc, sw, sh);
SelectObject(hdcMem, bm);
RECT rect;
GetWindowRect(GetDesktopWindow(), &rect);
POINT pt[3];
int inc3 = rand() % 700;
int v = rand() % 2;
if (v == 1) inc3 = -700;
inc3++;
pt[0].x = rect.left - inc3;
pt[0].y = rect.top + inc3;
pt[1].x = rect.right - inc3;
pt[1].y = rect.top - inc3;
pt[2].x = rect.left + inc3;
pt[2].y = rect.bottom - inc3;
PlgBlt(hdcMem, pt, hdc, rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, 0, 0, 0);
HBRUSH brush = CreateSolidBrush(RGB(rand() % 255, rand() % 255, rand() % 255));
SelectObject(hdc, brush);
BitBlt(hdc, rand()%20, rand()%20, sw, sh, hdcMem, rand()%20, rand()%20, 0x123456);
DeleteObject(brush);
DeleteObject(hdcMem); DeleteObject(bm);
ReleaseDC(0, hdc);
Sleep(1);
}
}
int main() {
HANDLE thread = CreateThread(0, 0, thing6, 0, 0, 0);
Sleep(-1);
}