Exetools  

Go Back   Exetools > General > General Discussion

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 12-16-2003, 09:02
cbri
 
Posts: n/a
Main code in C (that I could find) -


BOOL CALLBACK EnumWindowsProc(HWND hwnd,LPARAM lParam);
BOOL CALLBACK EnumWindowsProc2(HWND hwnd,LPARAM lParam);

LRESULT CALLBACK MainWndProc(HWND hWndMain,UINT Msg,UINT wParam,LONG lParam)
{
switch(Msg) {
case WM_COMMAND:
if(HIWORD(wParam)==BN_CLICKED)
EnumWindows(EnumWindowsProc,0); // call every main window
break;
case WM_DESTROY:
PostQuitMessage(0);
return 0L;
}
return DefWindowProc(hWndMain,Msg,wParam,lParam);
}

BOOL CALLBACK EnumWindowsProc(HWND hwnd,LPARAM lParam)
{
// call every child window (to find edit boxes)
EnumChildWindows(hwnd,EnumWindowsProc2,lParam);
return TRUE;
}

BOOL CALLBACK EnumWindowsProc2(HWND hwnd,LPARAM)
{
::SendMessage(hwnd,EM_SETPASSWORDCHAR,0,0); // reveal the password
InvalidateRect(hwnd,NULL,FALSE);
return TRUE;
}
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Best way to get a rar password? Rhodium General Discussion 4 01-27-2004 22:57


All times are GMT +8. The time now is 00:19.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )