WTS_CONTEXTFLAGS enumeration (thumbcache.h)

Specifies the context of a thumbnail extraction. Used by IThumbnailSettings::SetContext.

Your thumbnail provider will set this flag based on the WTS_FLAGS values that it received through the IThumbnailProvider::GetThumbnail request.

Syntax

typedef enum WTS_CONTEXTFLAGS {
  WTSCF_DEFAULT = 0,
  WTSCF_APPSTYLE = 0x1,
  WTSCF_SQUARE = 0x2,
  WTSCF_WIDE = 0x4,
  WTSCF_FAST = 0x8
} ;

Constants

 
WTSCF_DEFAULT
Value: 0
None of the following options are set. Set in response to WTS_NONE.
WTSCF_APPSTYLE
Value: 0x1
Provide a thumbnail suitable to the Windows Store app UX guidelines. Set in response to WTS_APPSTYLE.
WTSCF_SQUARE
Value: 0x2
If necessary, crop the bitmap's dimensions so that is square. The length of the shortest side becomes the length of all sides. Set in response to WTS_CROPTOSQUARE.
WTSCF_WIDE
Value: 0x4
Stretch and crop the bitmap so that its height is 0.7 times its width. Set in response to WTS_WIDETHUMBNAILS.
WTSCF_FAST
Value: 0x8
If not cached, only extract the thumbnail if it is embedded in EXIF format, typically 96x96. Set in response to WTS_FASTEXTRACT.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Header thumbcache.h