gdi32: Use GdiGetCodePage() instead of duplicating its functionality.