Returns a copy of the palette currently used by the picture object.
HRESULT get_hPal(
OLE_HANDLE* phpal //Receives a pointer to palette handle
);
This method supports the standard return values E_FAIL and E_OUTOFMEMORY, as well as the following:
If the picture object has ownership of the picture, it also has ownership of the palette and will destroy it when the object is itself destroyed. Otherwise the caller owns the palette. The fOwn parameter to OleCreatePictureIndirect determines ownership. OleLoadPicture sets fOwn to TRUE to indicate that the picture object owns the palette.
Windows NT: Use version 4.0 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in ocidl.h.