IActiveDesktopSetWallpaper Method
Sets the wallpaper for the Active Desktop.
Namespace: DevCase.Win32.InterfacesAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[PreserveSigAttribute]
HResult SetWallpaper(
string filepath,
int reserved
)
<PreserveSigAttribute>
Function SetWallpaper (
filepath As String,
reserved As Integer
) As HResult
Dim instance As IActiveDesktop
Dim filepath As String
Dim reserved As Integer
Dim returnValue As HResult
returnValue = instance.SetWallpaper(filepath,
reserved)
[PreserveSigAttribute]
HResult SetWallpaper(
String^ filepath,
int reserved
)
[<PreserveSigAttribute>]
abstract SetWallpaper :
filepath : string *
reserved : int -> HResult
No code example is currently available or this language may not be supported.
- filepath String
-
A string containing the filepath of the wallpaper to be set.
- reserved Int32
-
Reserved. Must be set to zero.
HResult
If the function succeeds, it returns
S_OK,
otherwise, it returns an
HResult error code.