This example lets you find the current Desktop object and retrieves the current lockup background definition.
WPDesktop *Desktop; PSZ pszImageFile; ULONG ulImageMode; ULONG ulScaleFactor; ULONG ulBackgroundType; LONG lBackgroundColor; Desktop = _wpclsQueryObjectFromPath("<WP_DESKTOP>"); _wpQueryLockupBackground(Desktop, &pszImageFileName, &ulImageMode, &ulScaleFactor, &ulBackgroundType, &lBackgroundColor); /* pszImageFileName contains the pointer to the name of the image file * ulImageMode is BACKGROUND_NORMAL_IMAGE, * BACKGROUND_TILED_IMAGE, * or BACKGROUND_SCALED_IMAGE * ulScaleFactor is a number between 1 and 20 * ulBackgroundType is BACKGROUND_COLOR_ONLY or BACKGROUND_IMAGE * lBackgroundColor is an encoded RGB color value */