Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I would like to know how can I build a program that appears just after logon (authentication) and before displaying the desktop.

Specifically I would like that my program always run when the machine turn on and after initial login, then it will show a simple form which would need input from the user, thus if the user does not enter data my program await, but if the user inputs the required data into the form, then the Windows 7 desktop should normally appears and run.

Any hint or idea will be very appreciated.
Regards
Carlos
Posted

The request looks absurd: "before displaying the desktop" and "will show a simple form" contradict to each other. There is not such thing as a form shown without desktop. However, you can possibly do something when the desktop is there.

You can develop a Windows Server which you can subscribe to the system event notifications using the class Microsoft.Win32.SystemEvents:
http://msdn.microsoft.com/en-us/library/microsoft.win32.systemevents.aspx[^].

First of all, I would handle its event SessionSwitch:
http://msdn.microsoft.com/en-us/library/microsoft.win32.systemevents.sessionswitch.aspx[^].

—SA
 
Share this answer
 
v2
Comments
Espen Harlinn 18-Jul-12 11:07am    
5'ed!
Sergey Alexandrovich Kryukov 18-Jul-12 11:28am    
Thank you, Espen.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900