Hi,
I have an application that runs as a daemon service in window desktop. When the user left their desktop unattended, one of my written screen saver will pop up and when the user hit enter a password dialog box will come up for screensaver deactivation purpose.
Some issues are encountered,
1) The password dialog box is not a foreground window when it pop up, hence keystrokes cannot be captured. If I use the SetForeGroundWindow API, it is not reliable, sometimes user may accidentally hit the mouse and dialog went out of focus.
2) I try checking "System Modal" flag in the password dialog form, but it is not useful either.
3) Worst still, I have set the screensaver as the topmost form and yet Microsoft Outlook reminder message box can still pop on top of it causing some security issues.
Pls give me some suggestions on overcoming this problems. Thanks.
Fyi. The dialog box is created using the DialogBox(..., DlgProc). There is no CDialog class.
Netminder
Community Support Moderator
Experts Exchange