STRRETSTRRET*
*Contents  *Index  *Topic Contents
*Previous Topic: SOVECTORHEADER
*Next Topic: FOLDERFLAGS

STRRET

Contains strings returned from the IShellFolder interface methods.

Syntax

typedef struct _STRRET {
   UINT uType; 
   union 
   { 
      LPWSTR pOleStr;
      LPSTR pStr;
      UINT uOffset;
      char cStr[MAX_PATH];
   } DUMMYUNIONNAME; 
} STRRET, *LPSTRRET; 

Members

uType
Value that specifies the desired format of the string. This can be one of the following values:
STRRET_CSTRThe string is returned in the cStr member.
STRRET_OFFSETThe uOffset member value indicates the number of bytes from the beginning of the item identifier list where the string is located.
STRRET_WSTRThe string is at the address pointed to in the pOleStr member.
pOleStr
Address of the OLE string. This memory must be allocated with the shell's allocator (see SHGetMalloc). It is the calling application's responsibility to free this memory when it is no longer needed. The shell's allocator must be used to free the memory.
pStr
This member is not used.
uOffset
Offset into item identifier list.
cStr
Buffer to receive the display name.

See Also

IShellFolder::GetDisplayNameOf


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.