IPicture::get_Type

Returns the current type of the picture contained in the picture object.

HRESULT get_Type(
  short* ptype  //Receives a pointer to the picture type
);
 

Parameters

ptype
[out] Pointer to the caller's short variable to receive the picture type. The Type property can have any one of the values contained in the PICTYPE enumeration.

Return Values

This method supports the standard return value E_FAIL, as well as the following:

S_OK
The type was returned successfully.
E_POINTER
The address in ptype is not valid. For example, it may be NULL.

QuickInfo

  Windows NT: Use version 4.0 or later.
  Windows: Use Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in ocidl.h.

See Also

OleCreatePictureIndirect, PICTYPE