Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void send(char* data)
- {
- HWND ftprush_window = FindWindow(L"TfmRush", 0);
- if (ftprush_window)
- {
- COPYDATASTRUCT cds;
- cds.dwData = 1000;
- cds.cbData = strlen(data) + 1;
- cds.lpData = data;
- SendMessage(ftprush_window, WM_COPYDATA, 0, LPARAM(&cds));
- wprintf(L"Message Send\n");
- }
- wprintf(L"Could not find FTPRush Window, Error: %d\n", GetLastError());
- }
Add Comment
Please, Sign In to add comment