easy retrieval of multi byte strings out of STRRET structures More...
#include <shellclasses.h>


Public Member Functions | |
| ~StrRetA () | |
| void | GetString (const SHITEMID &shiid, LPSTR b, int l) |
easy retrieval of multi byte strings out of STRRET structures
Definition at line 879 of file shellclasses.h.
| StrRetA::~StrRetA | ( | ) | [inline] |
Definition at line 881 of file shellclasses.h.
{
if (uType == STRRET_WSTR)
ShellMalloc()->Free(pOleStr);
}
| void StrRetA::GetString | ( | const SHITEMID & | shiid, |
| LPSTR | b, | ||
| int | l | ||
| ) | [inline] |
Definition at line 887 of file shellclasses.h.
References UNION_MEMBER.
Referenced by path_from_pidlA().
{
switch(uType) {
case STRRET_WSTR:
WideCharToMultiByte(CP_ACP, 0, UNION_MEMBER(pOleStr), -1, b, l, NULL, NULL);
break;
case STRRET_OFFSET:
lstrcpynA(b, (LPCSTR)&shiid+UNION_MEMBER(uOffset), l);
break;
case STRRET_CSTR:
lstrcpynA(b, UNION_MEMBER(cStr), l);
}
}

|
ROS Explorer Source Code Documentation
generated on 02.01.2013 by
|