Service Changes Logon Background On Boot

I have a service that makes a background image comprised of different information (Name, IP, MAC, etc).

My intention is to have the service change the HKEY_USERS\.DEFAULT\Control Panel\Desktop\Wallpaper key before winlogon accesses it when displaying the login screen (Not welcome screen). But it doesn't seem to do it fast enough. If I reboot again the wallpaper will show, but it will be one reboot behind if you get my drift.

SystemParametersInfo() with SPI_SETDESKWALLPAPER doesn't seem to work either.

Any ideas?
LVL 13
Dagan HooverDeveloperAsked:
Who is Participating?
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.

Brian PiercePhotographerCommented:
I'm a bit confuded here - how can you show the name before the user has logged on ?
Most people use simply BGINFO to display this info AFTER logon
Dagan HooverDeveloperAuthor Commented:
Computer Name and User Name. Both resolve from the service, the user name being SYSTEM. The issue is that the service doesn't change the registry value fast enough.
hi ThievingSix;

>>The issue is that the service doesn't change the registry value fast enough.
Have you set your service configuration to 1


or try to rename your service alphabitically starting from a;
or it can be
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

Dagan HooverDeveloperAuthor Commented:
I tried both those to no avail. Even tried fumbling and changing the service type to Device/File System so I could set the StartType to Boot instead of System/Automatic.

I know that it can be done. Like, for example, Auslogics registry defrag. Boots before the registry is even loaded.
Dagan HooverDeveloperAuthor Commented:
Which makes me think, if a program is running even before the registry is loaded, how is it run. Does it replace itself as the bootloader?
All startups come from registry.
>>Does it replace itself as the bootloader?
No, it doesn't but it adds to another line, you can try that.

1. BootExecute
      HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\BootExecute

autocheck autochk *
YOU can add your program here.

   2. Services
   3. User enters a password and logon to the system
   4. UserInit
      HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\UserInit
   5. Shell
      HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell
   6. All Users-RunOnce
   7. All Users-Run
   8. All Users-RunOnceEx
   9. All Users-RunEx
  10. Current User-RunOnce
  11. Current User-Run
  12. Current User-RunOnceEx
  13. Current User-RunEx
  14. Common Startup Folder
  15. Startup Folder
To prove what I am trying to say, look at this page;

I hope that will help you broaden your experties in your project.

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
Dagan HooverDeveloperAuthor Commented:
I haven't tried this yet, but I will as soon as I can.
Dagan HooverDeveloperAuthor Commented:
Haven't had time to test, but I'm pretty sure that this is the right direction for the answer.
Thanks ThievingSix

Delphi Rocks,  Now Lazarus
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.