守候你守候我
#include <windows.h>#pragma comment(lib,"user32.lib")BOOL CALLBACK EnumChildProc(HWND hwnd,LPARAM lParam) {LPWSTR lpString = (LPWSTR)malloc(1024 * sizeof(WCHAR));GetWindowText(hwnd,lpString,1024);wprintf(L"%s\n",lpString);return true;}int main(int argc, char* argv[]){EnumChildWindows(0,EnumChildProc,NULL);//EnumWindows(EnumChildProc,NULL;return 0;}