This examples lets you find the background definition for the current folder.
PSZ pszImageFile; ULONG ulImageMode; ULONG ulScaleFactor; ULONG ulBackgroundType; LONG lBackgroundColor; _wpQueryFldrBackground(somSelf, &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 */