|
IDataObject::QueryGetData
Determines whether the data object is capable of rendering the data described
in the FORMATETC structure. Objects attempting a paste or drop operation can call this method
before beginning the process. In some cases, the subsequent paste or drop
operation may still fail.
HRESULT QueryGetData(
FORMATETC * pFormatetc
| //Points to the data and formats to be used for the query
| );
|
|
Parameter
pFormatetc
[in]Points to the format, media, and target device to use for the query.
Return Values
S_OK
Indicates a subsequent call to IDataObject::GetData would probably be successful.
E_INVALIDARG
One or more arguments are invalid.
E_UNEXPECTED
An unexpected error occurred.
E_OUTOFMEMORY
The process didn't execute because the system ran out of memory.
DV_E_LINDEX
Invalid value for lindex; currently, only -1 is supported.
DV_E_FORMATETC
Invalid value for pFormatetc.
DV_E_TYMED
Invalid tymed value.
DV_E_DVASPECT
Invalid dwAspect value.
OLE_E_NOTRUNNING
Object application is not running.
See Also
IDataObject::GetData, FORMATETC
Related LinksSoftware for Delphi and C++ Builder developers Software for Visual Studio .NET developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference (win32.hlp) Win32 Multimedia Programmer's Reference (mmedia.hlp) Microsoft Windows Pen API Programmer's Reference (penapi.hlp) Microsoft Windows Sockets 2 Reference (sock2.hlp) Microsoft Windows Telephony API (TAPI) Programmer's Reference (sock2.hlp) Unix Manual Pages
|