Hello, I need help with my win32 application.
I need to find code which start only my application. Another application should not run. It is a login screen.
This isn't for ransomeware is it? Subverting an OS's login screen is a terrible thing to do in just about any situation.
Further, it'll take a lot more skill than a code snippet of C++ to replace something so deeply interweaved into the core of the OS. Not to mention it would be edition, version, locale, and current patch dependent. (ie doing this on Win7 SP1 Spanish will not work on Win7 SP1 Chinese, or even Win7 SP1 Spanish with a random hotfix that only applies to very specific yet entirely common hardware configurations)
In short. No, rethink what you intend to do. You're approach is not valid, especially with the skill level you appear to have.
Though if you approach this slightly differently, you can accomplish something similar.
Short of credential provider implementation, you can create a process which runs as NT AUTHORITY\SYSTEM and launch something in the same session as the winlogon.exe process. Then if you covered the logon screen, you could fake a logon screen... but don't do that, because at that point your program would correctly be classified as malware.
Let's change gears a bit here OP. If you want the users attention exclusively then try "CreateDesktop()" "SwitchDesktop()" to bring them into an environment dedicated to your application. You can't use this for malware, but it does accomplish your intent.