gdi32: Add a helper to retrieve the ntm flags.