Advertisement
Guest User

Untitled

a guest
Jul 19th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.49 KB | None | 0 0
  1. BOOL CALLBACK ChildControl(HWND hWnd, LPARAM lparam)
  2. {
  3.     char childClass[MAX_CLASS_NAME + 1];
  4.     GetClassName(hWnd, childClass, MAX_CLASS_NAME + 1 );
  5.  
  6.  
  7.     if(!lstrcmp(childClass, "Edit") && childCount == 0) {
  8.         childCount++;
  9.         hWndUsername = hWnd;
  10.         OutputDebugStringf("Found username field!\n", childClass);
  11.     } else if(!lstrcmp(childClass, "Edit") && childCount == 1) {
  12.         childCount++;
  13.         hWndPassword = hWnd;
  14.         OutputDebugStringf("Found password field!\n", childClass);
  15.     }
  16.  
  17.     return TRUE;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement