Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.16 KB | None | 0 0
  1. void GetActiveWindowTitle(char buffer[256])
  2. {
  3.     HWND hwndActive = GetForegroundWindow();
  4.     int maxLen = 256;
  5.     GetWindowText(hwndActive, buffer, maxLen);
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement