Originally posted by: zhaoruijie
Why I don't colse the dialog using the 'X' in the left-top
and in the 'close' menu in the system menu.
I don't find the reason in the code.
Who can help me?
Thanks a lot.
Reply
Originally posted by: Tom
Hi,
this tool worked great on Win NT but no longer on W2K. It used to work on W2K RC2 (if I remember correctly). Does anyone know what has changed ?
Tom
Originally posted by: Ms. I . Explorer
Tom Archer and others,
Any leads on how we could start this program before the windows logon box pops up ? and get the password? ;-)
Also, i am working on the IE password fields and its not that hard...
hopefully in 2 days i will upload the code.
Hey Tom, nice job! You may need to maintain a separate newsgroup soon. What next?
Reply
Originally posted by: Toby Sharp
#include <windows.h>
// Callback for EnumChildWindows
// See if the current window is an edit control
// Return TRUE to continue with window enumeration
// Main entry point
// And we're done
// Pass.cpp
//
// Copyright (C) Toby Sharp, February 2000
// mailto:toby.sharp@mailexcite.com
//
// A simple utility to remove the password style from
// all existing edit boxes to show their true text content.
//
// Works correctly under Windows NT 4.0. Not tested for
// other Windows versions.
BOOL CALLBACK EnumChildProc(HWND hWnd, LPARAM lParam)
{
static TCHAR szClass[512];
GetClassName(hWnd, szClass, 512);
if (lstrcmp(szClass, "Edit") == 0)
{
// Window is an edit control
// Remove the password style if set
SendMessage(hWnd, EM_SETPASSWORDCHAR, 0, 0);
// And redraw
InvalidateRect(hWnd, NULL, FALSE);
}
return TRUE;
}
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
// Get desktop window -- the parent of all other windows
HWND hDesktop = GetDesktopWindow();
// Enumerate all its children (and their children etc.)
// calling EnumChildProc for each window
EnumChildWindows(hDesktop, &EnumChildProc, 0);
return 0;
}
Originally posted by: Cube
What a coincidence... I wrote a prog of the exact same nature and was gonna send it in to codeguru but never had the time... Congradulations on beating me to it. *s* I guess great minds do think alike...
ReplyOriginally posted by: Yair Konfino
A short and simple program that should
be tought in MFC schools.
Originally posted by: kevin
The program is good, but it doesn't work when I try to decode the password from the internet.
ReplyOriginally posted by: Arun Dayanandan
A very good work.
ReplyOriginally posted by: Honza Koter
Eureka is a veru good program, but isn't Microsoft Spy++ much better???
ReplyOriginally posted by: Little Wolf
It's a good source code. But I found that it did not work
in some edit box. The wndclass show "TEdit". So I
modified the code show below:
Change
if (0 == m_strWndClass.CompareNoCase("EDIT"))
in
void CEurekaDlg::OnMouseMove(UINT nFlags, CPoint point)
to
m_strWndClass.MakeUpper ();
if (m_strWndClass.Find("EDIT") != -1)
then it works again!
BTW: I send a message to the password editbox like below:
::SendMessage(hwndCurr, WM_GETTEXT, 255, (LPARAM)szText);
::SendMessage(hwndCurr, EM_SETPASSWORDCHAR, 0, NULL);
::SendMessage(hwndCurr, WM_SETTEXT, 255, (LPARAM)szText);
then the password show in the password editbox with their true characters.
Reply