Change Wallpaper in windows mobile
Posted
by niks86
on Stack Overflow
See other posts from Stack Overflow
or by niks86
Published on 2010-05-18T13:09:36Z
Indexed on
2010/05/18
13:10 UTC
Read the original article
Hit count: 150
c#3.0
Hello Friends,
Hey im devloping application in that i want to set images as the wallpaper for that i written below code.when i used remote registry in registry value get updated but the wallpaper of the windows mobile does not changed.Can u plz tel me what i need to do.
Here is my code.
[DllImport("coredll.dll")]
private static extern int SendMessage(IntPtr hWnd, uint msg, int wParam, int lParam);
public const int HWND_BROADCAST = 0xffff;
public const int WM_WININICHANGE = 0x001A;
File.Copy(@"\My Documents\My Pictures\Album Sample_05.jpg", @"\My Documents\My Pictures\Album Sample_09.jpg", true); Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Today", "Wall", @"\My Documents\My Pictures\Album Sample_05.jpg"); SendMessage((IntPtr)HWND_BROADCAST, WM_WININICHANGE, 0xF2, 0);
plz help me.
Thanks.
© Stack Overflow or respective owner