Desktop package
-Extension DLL for NSIS

The desktop.dll contains three functions:
d_width
d_color
d_paper

Originally created for TDLBack, an installer
that installs a background for ToDoList, see
my homepage for more information.

You can use the dll to find out screen resolution
to install the right background picture (JPEG or BMP).
When installing a JPEG image, the ActiveDesktop
needs to be enabled first.


Dll contructed by
  Hendri Adriaens (Smile2Me).
  HendriAdriaens@hotmail.com
  http://home.hetnet.nl/~HendriAdriaens

---

[D_Width]

input: none
output: screen resolution width, on stack
result: none

Usage:
CallInstDll desktop.dll d_width
Pop $0
MessageBox MB_OK "Screenwidth is: $0"

---

[D_Color]

inputs: red, green and blue numbers on stack
output: none
result: background color of desktop will be set

Usage:
Push 191
Push 217
Push 234
CallInstDll desktop.dll d_color
WriteRegStr HKCU "Control Panel\Colors" "Background" "191 217 234"

Comment: The WriteReg is needed to make the colorchange permanent.

---

[D_paper]

input: path to JPEG/BMP file to put on ActiveDesktop, on stack
output: none
result: changes background wallpaper

Usage:
Push $INSTDIR\ToDoList.jpg
CallInstDll desktop.dll d_paper

---