Execution Before logonui



Hi - I wrote a VB exe that updates the number of unread mail messages dsiplayed on the logon screen by contacting the server and updating the unreadmail in the registry. I then changed the registry so it runs my program before it runs the logonui.exe so that the new values should be displayed, but alas, they are not. After I login as a user, I can see that the values have indeed been updated in the registry, and in fact, if I hit windows-L to get back to the logon screen, those new values display, but for some reason they are not displaying on initial logon. As far as I can tell, there could be one of two things happening here 1) the system is calling my script in parallel with loading the logonui.exe so my script has not yet updated the values when the logon screen comes up. 2) the values for the unread mail count for initial logon are stored in some place other then the unredmail keys in the registry. I think the second one is less likely. How can I fix this problem? Can I force Windows to wait for ending executing the first script before it calls logonui.exe or is there something else wrong here that I'm missing?
thanks so much!!


OSNN Veteran Addict
6 Dec 2001
Where are you calling your script up? cause i'm pretty sure windows places it's files in priority during load unless you load the script in dos...but if ya load the script in dos it clearly won't be able to load...so it's most likely that logonui is loading first and your script is changing the reg values after load which as you state won't show up till after you load logonui again..sorry man not sure if ya can load your script first =/


in the registry: HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\Cu

I was under the impression, the order one entered the programs here, the order they were executed. Furthermore, it seems like there is clearly some delay before the logon screen is displayed, presumably because it is then running my code. Anyone that has any expertise in this area would be very helpful here.

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Latest member