IInkDisp::CanPaste

4/8/2010

Indicates whether the IDataObject can be converted to an IInkDisp object.

Syntax

HRESULT CanPaste (
  [in, optional, defaultvalue(0)] IDataObject* dataObject,
  [out, retval] VARIANT_BOOL* CanPaste
);

Parameters

  • dataObject
    [in, optional] Specifies the IDataObject to inspect. The default value is NULL, which means the data object on the Clipboard is used.
  • CanPaste
    True if the data object can be converted to an IInkDisp object; otherwise, False.

Return Value

  • S_OK
    Success.
  • E_POINTER
    A parameter contained an invalid pointer.
  • E_INK_EXCEPTION
    An exception occurred inside the method.

Remarks

If the supplied IDataObject is NULL, then the data object on the Clipboard is used.

Requirements

Header msinkaut.h
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile 6 Classic and later, Windows Mobile 6 Professional and later

See Also

Concepts

Windows Mobile Ink Reference