// printoem.h
typedef struct {
DWORD dwFixedMemoryUsage;
DWORD dwPercentMemoryUsage;
DWORD dwMaxBandSize;
} OEMMEMORYUSAGE, *POEMMEMORYUSAGE;
View the official Windows Driver Kit DDI referenceNo description available.
The OEMMEMORYUSAGE structure is used as an input parameter to a rendering plug-in's IPrintOemUni::MemoryUsage method.
dwFixedMemoryUsageSpecifies the amount, in bytes, of fixed-sized memory required by the IPrintOemUni::MemoryUsage method. Supplied by the rendering plug-in.
dwPercentMemoryUsageSpecifies 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.
dwMaxBandSizeSpecifies 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.
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.