UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NN:xpsobjectmodel.IXpsOMThumbnailGenerator |
IXpsOMThumbnailGenerator (xpsobjectmodel.h) |
Generates a thumbnail image resource. |
|
xps\ixpsomthumbnailgenerator.htm |
xps |
cac794c0-bea2-417e-880f-15838f718ba7 |
12/05/2018 |
IXpsOMThumbnailGenerator, IXpsOMThumbnailGenerator interface [XPS Documents and Packaging], IXpsOMThumbnailGenerator interface [XPS Documents and Packaging],described, xps.ixpsomthumbnailgenerator, xpsobjectmodel/IXpsOMThumbnailGenerator |
xpsobjectmodel.h |
Windows |
Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps only] |
Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps only] |
XpsObjectModel.idl |
XpsRasterService.dll |
Windows |
19H1 |
|
|
|
|
|
|
Generates a thumbnail image resource.
The IXpsOMThumbnailGenerator interface inherits from the IUnknown interface. IXpsOMThumbnailGenerator also has these types of members:
To instantiate this interface, call CoCreateInstance as shown in the code example that follows.
IXpsOMThumbnailGenerator *newInterface;
// Note the implicit requirement that CoInitializeEx
// has previously been called from this thread.
hr = CoCreateInstance(
__uuidof(XpsOMThumbnailGenerator),
NULL,
CLSCTX_INPROC_SERVER,
__uuidof(IXpsOMThumbnailGenerator),
reinterpret_cast<LPVOID*>(&newInterface)
);
if (SUCCEEDED(hr))
{
// use newInterface
newInterface->Release();
}
else
{
// evaluate HRESULT error returned in hr
}
This interface requires XpsRasterService.dll. If XpsRasterService.dll is not present when CoCreateInstance is called to create an IXpsOMThumbnailGenerator instance, CoCreateInstance returns E_FAIL.