Public Member Functions | Protected Attributes

PIDList Struct Reference

list of PIDLs More...

#include <shellclasses.h>

Collaboration diagram for PIDList:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PIDList ()
 ~PIDList ()
HRESULT GetData (IDataObject *selection)
 operator LPIDA ()

Protected Attributes

STGMEDIUM _stgm
LPIDA _pIDList

Detailed Description

list of PIDLs

Definition at line 1057 of file shellclasses.h.


Constructor & Destructor Documentation

PIDList::PIDList (  ) [inline]

Definition at line 1059 of file shellclasses.h.

References _stgm.

    {
        memset(&_stgm, 0, sizeof(STGMEDIUM));
    }
PIDList::~PIDList (  ) [inline]

Definition at line 1064 of file shellclasses.h.

References _stgm.

    {
        if (_stgm.hGlobal) {
            GlobalUnlock(_stgm.hGlobal);
            ReleaseStgMedium(&_stgm);
        }
    }

Member Function Documentation

HRESULT PIDList::GetData ( IDataObject selection ) [inline]

Definition at line 1072 of file shellclasses.h.

References _pIDList, and _stgm.

Referenced by DesktopShellView::DoContextMenu(), and IShellBrowserImpl::OnDefaultCommand().

    {
        static UINT CF_IDLIST = RegisterClipboardFormat(CFSTR_SHELLIDLIST);

        FORMATETC fetc;
        fetc.cfFormat = CF_IDLIST;
        fetc.ptd = NULL;
        fetc.dwAspect = DVASPECT_CONTENT;
        fetc.lindex = -1;
        fetc.tymed = TYMED_HGLOBAL;

        HRESULT hr = selection->QueryGetData(&fetc);
        if (FAILED(hr))
            return hr;

        hr = selection->GetData(&fetc, &_stgm);
        if (FAILED(hr))
            return hr;

        _pIDList = (LPIDA)GlobalLock(_stgm.hGlobal);

        return hr;
    }

Here is the caller graph for this function:

PIDList::operator LPIDA (  ) [inline]

Definition at line 1096 of file shellclasses.h.

References _pIDList.

{return _pIDList;}

Member Data Documentation

LPIDA PIDList::_pIDList [protected]

Definition at line 1100 of file shellclasses.h.

Referenced by GetData(), and operator LPIDA().

STGMEDIUM PIDList::_stgm [protected]

Definition at line 1099 of file shellclasses.h.

Referenced by GetData(), PIDList(), and ~PIDList().


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