Public Member Functions

StrRetW Struct Reference

easy retrieval of wide char strings out of STRRET structures More...

#include <shellclasses.h>

Inheritance diagram for StrRetW:
Inheritance graph
[legend]
Collaboration diagram for StrRetW:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ~StrRetW ()
void GetString (const SHITEMID &shiid, LPWSTR b, int l)

Detailed Description

easy retrieval of wide char strings out of STRRET structures

Definition at line 905 of file shellclasses.h.


Constructor & Destructor Documentation

StrRetW::~StrRetW (  ) [inline]

Definition at line 907 of file shellclasses.h.

    {
        if (uType == STRRET_WSTR)
            ShellMalloc()->Free(pOleStr);
    }

Member Function Documentation

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);
        }
    }

Here is the caller graph for this function:


The documentation for this struct was generated from the following file:

ROS Explorer Source Code Documentation
generated on 02.01.2013 by doxygen

ROS Explorer Homepage