diff --git a/PInvoke/UxTheme/UXTHEME.cs b/PInvoke/UxTheme/UXTHEME.cs index 1845e74c..25139fa0 100644 --- a/PInvoke/UxTheme/UXTHEME.cs +++ b/PInvoke/UxTheme/UXTHEME.cs @@ -1535,7 +1535,7 @@ public static partial class UxTheme /// Type: HRESULT /// If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. /// - public static HRESULT GetThemeColor(HTHEME hTheme, int iPartId, int iStateId, int iPropId, out COLORREF pColor) + public static HRESULT GetThemeColor(HTHEME hTheme, TPart iPartId, TState iStateId, TProp iPropId, out COLORREF pColor) where TPart : IConvertible where TState : IConvertible where TProp : IConvertible => GetThemeColor(hTheme, Convert.ToInt32(iPartId), Convert.ToInt32(iStateId), Convert.ToInt32(iPropId), out pColor);