Public Member Functions

StrRetA Struct Reference

easy retrieval of multi byte strings out of STRRET structures More...

#include <shellclasses.h>

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

List of all members.

Public Member Functions

 ~StrRetA ()
void GetString (const SHITEMID &shiid, LPSTR b, int l)

Detailed Description

easy retrieval of multi byte strings out of STRRET structures

Definition at line 879 of file shellclasses.h.


Constructor & Destructor Documentation

StrRetA::~StrRetA (  ) [inline]

Definition at line 881 of file shellclasses.h.

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

Member Function Documentation

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

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