This repository has been archived on 2024-12-31. You can view files and clone it, but cannot push or open issues or pull requests.
TrollRAT/TrollRATNative/GDI.h

13 lines
No EOL
268 B
C

#pragma once
#include <Windows.h>
#define InitHDCs \
HWND hwnd = GetDesktopWindow(); \
HDC hdc = GetWindowDC(hwnd); \
RECT rekt; \
GetWindowRect(hwnd, &rekt); \
int w = rekt.right - rekt.left; \
int h = rekt.bottom - rekt.top;
#define FreeHDCs ReleaseDC(hwnd, hdc);