GetWindow 和GetWindowLongA 这些API 不走内核API的..怎么得到数据的 ...逆了会 没看懂. 有大大逆过的 能告诉下这结构和实现的机制吗?
void _GetWindow(HWND hWnd)
{
char szBuffer[MAX_PATH];
char strBuff[100];
char szClassName[100];
HWND hChildWnd;
HWND TophWnd = GetWindow(hWnd, GW_CHILD);
hChildWnd = TophWnd;
while (hChildWnd != NULL) {
::GetWindowText(hChildWnd, strBuff, 100);
::GetClassNameA(hChildWnd, szClassName, 100);
_snprintf(szBuffer, MAX_PATH, "hChildWnd:%d(0x%x) title:%s classname:%s \r\n", hChildWnd, hChildWnd, strBuff, szClassName);
OutputDebugStringA(szBuffer);
hChildWnd = ::GetNextWindow(hChildWnd, GW_HWNDNEXT);
}
}