Windows 3.1 Device Drivers (ddag31qh.hlp) (Table of Contents; Topic list)
SetAttribute
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
WORD SetAttribute(lpDestDev, wStateNum, wIndex, wAttribute)
LPPDEVICE lpDestDev;
WORD wStateNum;
WORD wIndex;
WORD wAttribute;
 
The SetAttribute function sets an attribute for a specified device state.
GDI does not currently call the SetAttribute function.
 
A graphics driver must export a SetAttribute function if the RC_GDI20_OUTPUT
value is set in the dpRaster member of the GDIINFO structure.
 
Parameter   Description
────────────────────────────────────────────────────────────────────────────
 
lpDestDev   Points to a PDEVICE or PBITMAP structure specifying the
            destination device or bitmap.
 
wStateNum   Specifies the device state.
 
wIndex      Specifies which attribute to set.
 
wAttribute  Specifies the attribute value.
 
Return Value
 
The return value is zero.
 
Comments
 
The export ordinal of this function is 18.
 
Although GDI does not currently call the SetAttribute function, the function
should always return zero, but carry out no other function.
 
                                      ♦