... in the mean time, you can achieve the exact same effect by:
(1) Calculate the color used to represent your maskid. The formula is listed on gapidraw.com, and is:
Color = RGB(((dwMaskID & 0x1F) << 3), ((dwMaskID & 0x3E0) >> 2), (dwMaskID & 0x7C00) >> 7))
(2) Draw the sprite to the mask surface using Blt with rotation and Colorfill, using the color above.
Voilá!
/Johan