gdi32: Use the helper to retrieve the number of colours.