This example lets you find the shadow text color for Icon View of the current folder.
ULONG ulTextColor; ulTextColor = _wpQueryShadowTextColor(somSelf,OPEN_CONTENTS); /* ulTextColor is an encoded RGB color value */