easy retrieval of wide char strings out of STRRET structures More...
#include <shellclasses.h>


Public Member Functions | |
| ~StrRetW () | |
| void | GetString (const SHITEMID &shiid, LPWSTR b, int l) |
easy retrieval of wide char strings out of STRRET structures
Definition at line 905 of file shellclasses.h.
| StrRetW::~StrRetW | ( | ) | [inline] |
Definition at line 907 of file shellclasses.h.
{
if (uType == STRRET_WSTR)
ShellMalloc()->Free(pOleStr);
}
| void StrRetW::GetString | ( | const SHITEMID & | shiid, |
| LPWSTR | b, | ||
| int | l | ||
| ) | [inline] |
Definition at line 913 of file shellclasses.h.
References UNION_MEMBER.
Referenced by path_from_pidlW().
{
switch(uType) {
case STRRET_WSTR:
lstrcpynW(b, UNION_MEMBER(pOleStr), l);
break;
case STRRET_OFFSET:
MultiByteToWideChar(CP_ACP, 0, (LPCSTR)&shiid+UNION_MEMBER(uOffset), -1, b, l);
break;
case STRRET_CSTR:
MultiByteToWideChar(CP_ACP, 0, UNION_MEMBER(cStr), -1, b, l);
}
}

|
ROS Explorer Source Code Documentation
generated on 02.01.2013 by
|