I'm trying to process a variable called mix with type MIX:
Code:
MIX mix;
According to the documentation, the information mix contains the following description:
The mix mode defines how the incoming pattern should be mixed with the data that is already on the device surface. The MIX data type consists of two binary raster operation (ROP2) values packed into a single ULONG. The lowest-order byte defines the foreground raster operation; the next byte defines the background raster operation. For more information about raster operation codes, see the Microsoft Windows SDK documentation.
I'm guessing that this value contains 2 bytes, one to define the foreground raster operation, the other one to define the background raster operation. How would one separate mix into lower and upper byte and process the flags?