|
|
От: |
rus blood
|
|
| Дата: | 10.11.11 13:28 | ||
| Оценка: | |||
A>HWND hCurrWnd = GetForegroundWindow();
A>DWORD idAttachTo = GetWindowThreadProcessId(hCurrWnd, NULL);
A>DWORD idAttach = GetCurrentThreadId();
A>AttachThreadInput(idAttach, idAttachTo, TRUE);DWORD idAttach = GetWindowThreadProcessId(hwnd, &pid);
DWORD idAttachTo = GetCurrentThreadId();
bRes = AttachThreadInput(idAttach, idAttachTo, TRUE);