Assuming your "project" is some kind of Remote Desktop app, you have some work to do. The problem stems from you not knowing how Windows works.
Your app works only on the User Desktop, the Desktop the user interacts with and all the apps they launch can show their UI. Your app can see and get bits from the User Desktop all it wants. Each user has their own Desktop. This is how you can have multiple people remoting into a Windows Server and everybody can see only their own Desktop.
The problem is the Lock Screen is running on its own Desktop, which is owned by the system. Your app needs to be able to know which Desktop is being shown and how to get at it.
About Window Stations and Desktops - Win32 apps | Microsoft Learn[
^]