Guest User

Untitled

a guest
Apr 25th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1.     void send(char* data)
  2.     {
  3.         HWND ftprush_window = FindWindow(L"TfmRush", 0);
  4.         if (ftprush_window)
  5.         {
  6.             COPYDATASTRUCT cds;
  7.             cds.dwData = 1000;
  8.             cds.cbData = strlen(data) + 1;
  9.             cds.lpData = data;
  10.             SendMessage(ftprush_window, WM_COPYDATA, 0, LPARAM(&cds));
  11.             wprintf(L"Message Send\n");
  12.         }
  13.         wprintf(L"Could not find FTPRush Window, Error: %d\n", GetLastError());
  14.     }
Add Comment
Please, Sign In to add comment