ReactOS 0.4.16-dev-927-g467dec4
CDrop Struct Reference

Public Member Functions

 CDrop (IDataObject *pDO)
 
 ~CDrop ()
 
UINT GetCount ()
 

Public Attributes

HRESULT hr
 
STGMEDIUM stgm
 
HDROP hDrop
 

Detailed Description

Definition at line 701 of file drvdefext.cpp.

Constructor & Destructor Documentation

◆ CDrop()

CDrop::CDrop ( IDataObject pDO)
inlineexplicit

Definition at line 707 of file drvdefext.cpp.

708 {
709 FORMATETC format = { CF_HDROP, NULL, DVASPECT_CONTENT, -1, TYMED_HGLOBAL };
710 hDrop = SUCCEEDED(hr = pDO->GetData(&format, &stgm)) ? (HDROP)stgm.hGlobal : NULL;
711 }
#define CF_HDROP
Definition: constants.h:410
#define NULL
Definition: types.h:112
HRESULT GetData([in, unique] FORMATETC *pformatetcIn, [out] STGMEDIUM *pmedium)
#define SUCCEEDED(hr)
Definition: intsafe.h:50
STGMEDIUM stgm
Definition: drvdefext.cpp:704
HRESULT hr
Definition: drvdefext.cpp:703
HDROP hDrop
Definition: drvdefext.cpp:705
Definition: format.c:58

◆ ~CDrop()

CDrop::~CDrop ( )
inline

Definition at line 713 of file drvdefext.cpp.

714 {
715 if (hDrop)
717 }
void WINAPI ReleaseStgMedium(STGMEDIUM *pmedium)
Definition: ole2.c:2033

Member Function Documentation

◆ GetCount()

UINT CDrop::GetCount ( )
inline

Definition at line 719 of file drvdefext.cpp.

720 {
721 return DragQueryFileW(hDrop, -1, NULL, 0);
722 }
UINT WINAPI DragQueryFileW(HDROP hDrop, UINT lFile, LPWSTR lpszwFile, UINT lLength)
Definition: shellole.c:622

Referenced by CDrvDefExt::AddPages(), and CDrvDefExt::Initialize().

Member Data Documentation

◆ hDrop

HDROP CDrop::hDrop

Definition at line 705 of file drvdefext.cpp.

Referenced by CDrvDefExt::AddPages(), CDrop(), GetCount(), CDrvDefExt::Initialize(), and ~CDrop().

◆ hr

HRESULT CDrop::hr

Definition at line 703 of file drvdefext.cpp.

Referenced by CDrvDefExt::AddPages(), CDrop(), and CDrvDefExt::Initialize().

◆ stgm

STGMEDIUM CDrop::stgm

Definition at line 704 of file drvdefext.cpp.

Referenced by CDrop(), and ~CDrop().


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