Windows 3.1 Device Drivers (ddag31qh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
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.
 
                                      ♦