Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BOOL CALLBACK ChildControl(HWND hWnd, LPARAM lparam)
- {
- char childClass[MAX_CLASS_NAME + 1];
- GetClassName(hWnd, childClass, MAX_CLASS_NAME + 1 );
- if(!lstrcmp(childClass, "Edit") && childCount == 0) {
- childCount++;
- hWndUsername = hWnd;
- OutputDebugStringf("Found username field!\n", childClass);
- } else if(!lstrcmp(childClass, "Edit") && childCount == 1) {
- childCount++;
- hWndPassword = hWnd;
- OutputDebugStringf("Found password field!\n", childClass);
- }
- return TRUE;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement