locked
Equivalent Function? RRS feed

  • Question

  • Hello,

    Anyone aware of a Windows Mobile (.NET 2.0 or 3.5) equivalent function of:

    Dim WshShell
    Set WshShell = WScript.CreateObject("Wscript.Shell")
    WshShell.RegWrite "HKCU\Control Panel\Desktop\Wallpaper", "laserjet.bmp"
    WshShell.Run "%windir%\System32\RUNDLL32.EXE user32.dll, UpdatePerUserSystemParameters", 1, False
    Set WshShell = Nothing

    Basically, I want Windows Mobile 6.1 to envoke a system refresh.  Similar to the above VBScript code, so the registry is current.

    Thank You.

    Brad

    Thursday, July 1, 2010 12:13 AM

Answers

All replies

  • It seems that you were trying to change the wallpaper. You can do that by P/Invoking the SHSetAsWatermark function. Please read the following thread for details:

    http://social.msdn.microsoft.com/Forums/en-US/vssmartdevicesnative/thread/6bb27f46-7232-4322-9236-37b555c0369e 


    Please mark the post that helps you, and unmark that does not. This benefits our community.
    • Marked as answer by warrentang Wednesday, July 7, 2010 9:28 AM
    Wednesday, July 7, 2010 9:28 AM
  •  

    Chunsheng,

    Well actually I was looking for a function that would cause a device wide system refresh, similar to what UpdatePerUserSystemParameters does.  The wallpaper was just an example.

    Thank You,

    Brad

    Tuesday, July 20, 2010 10:16 PM
  • I'm not aware of a function like that in Windows Mobile.
    Please mark the post that helps you, and unmark that does not. This benefits our community.
    Wednesday, July 21, 2010 2:06 AM
  • Chunsheng,

    Thank You.  If you stumble on to something down the road, lemme know.

    Brad

    Wednesday, July 21, 2010 5:42 PM