Click here to Skip to main content
Licence CPOL
First Posted 12 Jul 2008
Views 15,512
Downloads 179
Bookmarked 16 times

How to make the system information appear as your Windows wallpaper

By | 12 Jul 2008 | Article
PCBACKDROP works like BGINFO from SysInternals. Make your own Windows Desktop background with system information.

Introduction

PCBackdrop is a command-line tool to automatically display relevant information about a Workstation or Server on the user's desktop background. Items such as the Host Name, Local IP address, Username, Domain Name and the Operating System currently used on the machine, are all displayed in a neat little bitmap that is positioned in the middle of the user's desktop. This is particularly useful for helpdesk calls where the user can quickly provide the details of their workstation to the helpdesk operator. When placed in the Startup folder of a user's profile, or in a logon script, PCBackdrop simply writes a new desktop bitmap (PCBKDRP.BMP which is around 75 KB in size) to the user's 'My Documents' or 'Personal Folder' and then sets it as the default wallpaper for that session. Each time the user logs on to the Workstation, the information on the bitmap will be updated.

Image1.jpg

Background

PCBackdrop was made as a result of the need for sys admins to tailor a Windows background to display information about a PC or server. This example only shows a few items that can be shown. There's plenty of more system information that can be displayed, but this code shows the basic structure.

Using the code

The code is very straightforward and a lot of the code has been 'glued together' from other contributors of CodeProject. The code flow works like this:

  • The information about the PC and the current user is taken from the standard NETAPI32 calls and placed into a string. This string could contain any information, but I have only included the username, IP address etc.
  • The string is then sent and converted into a bitmap and saved into the users 'My Documents' folder. The 'My Documents' location is retrieved from the Registry, so it is not hard coded.
  • Once the bitmap is saved, the Registry location of the background wallpaper is set to the new bitmap and the shell is refreshed.

The compiled program can run on startup for each user, and it will display the requested details on the background wallpaper of any Windows NT and above PC.

The code requires that netapi32.lib be included.

Points of Interest

This is a simplistic method to enhance a helpdesk to get the details of a user's PC.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

woz70



Australia Australia

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
QuestionWhy not use the one from system internals..? Pinmemberyafan9:39 14 Jul '08  
AnswerRe: Why not use the one from system internals..? Pinmemberyafan9:40 14 Jul '08  
AnswerRe: Why not use the one from system internals..? PinmemberJohnSkinner21:07 18 Aug '08  
GeneralExplain PinmemberTrollslayer6:47 13 Jul '08  
GeneralWhy PinmemberRob Graham12:19 12 Jul '08  
Questionimage? PinmvpLuc Pattyn6:43 12 Jul '08  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web02 | 2.5.120517.1 | Last Updated 12 Jul 2008
Article Copyright 2008 by woz70
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid