ReactOS  0.4.13-dev-92-gf251225
StrRetA Struct Reference

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

#include <shellclasses.h>

Inheritance diagram for StrRetA:
Collaboration diagram for StrRetA:

Public Member Functions

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

Additional Inherited Members

- Public Attributes inherited from _STRRET
UINT uType
 
union {
   LPWSTR   pOleStr
 
   UINT   uOffset
 
   char   cStr [MAX_PATH]
 
DUMMYUNIONNAME
 

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::~StrRetA ( )
inline

Definition at line 881 of file shellclasses.h.

882  {
883  if (uType == STRRET_WSTR)
885  }
void Free([in] LPVOID pv)
LPWSTR pOleStr
Definition: shtypes.idl:96
UINT uType
Definition: shtypes.idl:93
wrapper class for IMalloc with usage of common allocator
Definition: shellclasses.h:252

Member Function Documentation

◆ GetString()

void StrRetA::GetString ( const SHITEMID shiid,
LPSTR  b,
int  l 
)
inline

Definition at line 887 of file shellclasses.h.

888  {
889  switch(uType) {
890  case STRRET_WSTR:
892  break;
893 
894  case STRRET_OFFSET:
895  lstrcpynA(b, (LPCSTR)&shiid+UNION_MEMBER(uOffset), l);
896  break;
897 
898  case STRRET_CSTR:
900  }
901  }
#define WideCharToMultiByte
Definition: compat.h:101
#define CP_ACP
Definition: compat.h:99
LPWSTR pOleStr
Definition: shtypes.idl:96
char cStr[MAX_PATH]
Definition: shtypes.idl:98
#define UNION_MEMBER(x)
Definition: shellclasses.h:861
smooth NULL
Definition: ftsmooth.c:416
const char * LPCSTR
Definition: xmlstorage.h:183
r l[0]
Definition: byte_order.h:167
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
UINT uOffset
Definition: shtypes.idl:97
#define lstrcpynA
Definition: compat.h:408
UINT uType
Definition: shtypes.idl:93

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