Forum posts for LogonUI.exe

LogonUI.exe process doesn't terminate after switching user

I am developing a Credential Provider (CP) that shows a dialog at logon or unlock screen of Windows Vista/7. That dialog terminates whenever the destructor of my Credential Provider is invoked. For basic scenarios like unlock or logon, that dialog is closed properly; however, I got into trouble with this scenario:


Lock computer: this will show my dialog
Click 'Other Credentials'
Click 'Switch User'


After step 3, a new dialog is created (a new logonUI process creates my CP) but the dialog in step 1 still exist but hide. I tried to debug and found that the loginUI created in the step 1 is not terminated and still keeps my CP so it is not destructed , then the dialog is not closed.

I expect there is only one dialog exist at a time. Is there any way to ask logonUI to release my CP or catch switch user event so that I can close the dialog on my own?

I am using: Win7 32-bit Ultimate.

View complete forum thread with replies

Other posts related to LogonUI.exe

See Related Forum Messages: Follow the Links Below to View Complete Thread

How to tell that the logon screen is currently displayed?
Perl script to gather WMI data on screensaver usage
Changing other user's registry through batch files
LogonUI.exe process doesn't terminate after switching user

What is the carbon footprint of your coffee?

Is it low? Is it high? Can this things really kill the planet Earth? Maybe the answer will surprise you. Maybe not.