a buddy of mine has a C++ program that starts on startup and runs in the background, that, on shutdown, halts shutdown and prompts the user with a question (in this case the question is "Have you signed out on the electronic in/out board?" If "yes" is selected then normal shutdown resumes. If "no" is selected, then a browser opens up to the in/out board on the intranet (it's a SharePoint page in Companyweb) where a user can then sign out.
The user will then have to initiate shutdown again, and will be prompted by the same question box as before.
This works awesome with one hitch. after initiating shutdown and the Box pops up to ask the user if they have signed out or not, after about 5 seconds, the "End Program" dialog box pops up (see attached. The "LogOffNotifier" in the title of the end program dialog box is the name of the C++ program, which initiates on a WM_Queryendsession).
This "end Program" dialog box is annoying and will confuse users. Anyone know how to stop this from popping up, or at the very least, delay the time it takes to pop up to at least 30 seconds?
Thanks so much for taking a poke at this!