OEMMEMORYUSAGE structure (printoem.h)

The OEMMEMORYUSAGE structure is used as an input parameter to a rendering plug-in's IPrintOemUni::MemoryUsage method.

Syntax

typedef struct {
  DWORD dwFixedMemoryUsage;
  DWORD dwPercentMemoryUsage;
  DWORD dwMaxBandSize;
} OEMMEMORYUSAGE, *POEMMEMORYUSAGE;

Members

dwFixedMemoryUsage

Specifies the amount, in bytes, of fixed-sized memory required by the IPrintOemUni::MemoryUsage method. Supplied by the rendering plug-in.

dwPercentMemoryUsage

Specifies the amount of variably-sized memory required by the IPrintOemUni::MemoryUsage method, expressed as a percentage of the size of the source bitmap received by IPrintOemUni::ImageProcessing. Supplied by the rendering plug-in.

dwMaxBandSize

Specifies the maximum size, in bytes, that can be used for source bitmaps. This is the value that Unidrv uses to subtract from when applying the plug-in supplied values contained in dwFixedMemoryUsage and dwPercentMemoryUsage. Supplied by Unidrv.

Remarks

The Unidrv driver uses the values in the dwFixedMemoryUsage and dwPercentMemoryUsage members of this structure to determine the optimum size for a GDI drawing surface, taking into account any memory requirements of a rendering plug-in's IPrintOemUni::ImageProcessing method. For more information about how these members are used, see the Remarks section in IPrintOemUni::MemoryUsage.

Requirements

Requirement Value
Header printoem.h (include Printoem.h)

See also

IPrintOemUni::ImageProcessing

IPrintOemUni::MemoryUsage