Click here to Skip to main content
15,885,546 members
Articles / Desktop Programming / Win32

How to make the system information appear as your Windows wallpaper

Rate me:
Please Sign up or sign in to vote.
1.11/5 (6 votes)
12 Jul 2008CPOL2 min read 39.9K   807   16   6
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)


Written By
Architect Ctrl-Alt-Del IT Consultancy Pty Ltd
Australia Australia
Warren Simondson is a Senior Systems Architect at Ctrl-Alt-Del IT Consultancy, an Australian based IT Consultancy firm, established in 2002, which is also a Citrix Gold Partner. Ctrl-Alt-Del IT Consultancy (www.ctrl-alt-del.com.au) is well known for the CAD Freeware Util Pack, a collection of over 30 Freeware utilities that have been written by Warren Simondson to assist IT Professionals extend the functionality and management of Terminal Server and Citrix Environments. Since 1996, Warren has been solely committed to thin client solutions, using his background as a programmer and school teacher to share his knowledge of Citrix and Terminal Server environments, and to deliver his freeware utilities to the world community. His primary focus in his professional life is to help those around him, demystifying the illusion of IT and sharing as much knowledge as possible to the wider community.

Comments and Discussions

 
QuestionWhy not use the one from system internals..? Pin
yafan14-Jul-08 9:39
yafan14-Jul-08 9:39 
AnswerRe: Why not use the one from system internals..? Pin
yafan14-Jul-08 9:40
yafan14-Jul-08 9:40 
AnswerRe: Why not use the one from system internals..? Pin
JohnSkinner18-Aug-08 21:07
JohnSkinner18-Aug-08 21:07 
GeneralExplain Pin
Trollslayer13-Jul-08 6:47
mentorTrollslayer13-Jul-08 6:47 
GeneralWhy Pin
Rob Graham12-Jul-08 12:19
Rob Graham12-Jul-08 12:19 
Questionimage? Pin
Luc Pattyn12-Jul-08 6:43
sitebuilderLuc Pattyn12-Jul-08 6:43 

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

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