Is there a way to pull the location of the currently displayed wallpaper? I know how to change it, but how do I find out what's currently being displayed?
This is what I use to change it:
private void ChangeWall()
{
int nResult;
nResult = WinAPI.SystemParametersInfo(20, 0, m_originalWallLocation, 0x1 | 0x2 );
}
public class WinAPI
{
[DllImport("user32.dll", CharSet=CharSet.Auto)]
public static extern int SystemParametersInfo (int uAction , int uParam , string lpvParam , int fuWinIni);
}
Question
wa22guy
Is there a way to pull the location of the currently displayed wallpaper? I know how to change it, but how do I find out what's currently being displayed?
This is what I use to change it:
private void ChangeWall() { int nResult; nResult = WinAPI.SystemParametersInfo(20, 0, m_originalWallLocation, 0x1 | 0x2 ); } public class WinAPI { [DllImport("user32.dll", CharSet=CharSet.Auto)] public static extern int SystemParametersInfo (int uAction , int uParam , string lpvParam , int fuWinIni); }Link to comment
Share on other sites
4 answers to this question
Recommended Posts