Change Lock Program on Windows PC

We have a third part piece of software that is part of our SSO product, when staff lock the computer using the SSO software there are no issues, but when we use the windows native lock using either CAD and choosing lock or hitting WindowsKey-L, when the staff member unlocks the PC and goes back in a second copy of our primary software will launch.  This software is only licensed and configured to run once on any given PC and it will cause errors to appear on the screen.

Is there a way that anyone knows of to change the functionality of CAD/Lock and WindowsKey-L to lock the computer so that it will be redirected to the application that is part of our SSO product to lock the device.

Thank you.
Roger PrayAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JohnBusiness Consultant (Owner)Commented:
The Windows Lock function in Windows 10 works properly and has been well implemented.

Have you asked the Software Vendor for an updated Version. Software need to adapt to Windows 10, not the other way round.
Shaun VermaakTechnical SpecialistCommented:
redirected to the application that is part of our SSO product to lock the device.
That requires a hook to these APIs
If you really want a one-off test, then the answer here uses OpenDesktop() and SwitchDesktop() to open a handle to the default desktop and activate it - if this fails then it's a good sign that the desktop is locked right now.

If you want notification on lock/unlock, and you have a user-mode application with a window and a message pump, then you need to call WTSRegisterSessionNotification() and catch the WM_WTSSESSION_CHANGE message.

If you want notifications, and you're running as a Windows service, then you can register for session change events by calling SetServiceStatus() and adding SERVICE_ACCEPT_SESSIONCHANGE to dwControlsAccepted in your status structure. You will then receive callbacks to your own service control HandlerEx() function with dwControl set to SERVICE_CONTROL_SESSIONCHANGE.
Roger PrayAuthor Commented:
One of my team members wound up implementing AutoIT to remap the windows key L functionality.

Not an ideal solution, but it functions for our needs.

Thanks to all who tried to help.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Roger PrayAuthor Commented:
we found a work around that resolved the issue we were experiencing, by using AutoIT my team member was able to create an easily importable file that we could distribute to the specific devices impacted by the issue.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.