STRRET

Contains strings returned from IShellFolder methods, such as GetDisplayNameOf.

typedef struct _STRRET { // str

UINT uType;

union

{

LPWSTR pOleStr; // pointer to OLE string to free

UINT uOffset; // offset into item identifier list

char cStr[MAX_PATH]; // buffer to receive the display name

} DUMMYUNIONNAME;

} STRRET, *LPSTRRET;

Member

uType

Value that specifies the desired format of the string. This member can be one of the following values:

STRRET_CSTR The string is returned in cStr.
STRRET_OFFSET The string is located at uOffset bytes from the beginning of the item identifier list.
STRRET_WSTR The string is at the address pointed to by pOleStr.

Remarks

The system may or may not provide the display name in the desired format. When IShellFolder::GetDisplayNameOf returns, the uType member indicates the format.

See Also

IShellFolder::GetDisplayNameOf