public static extern int GetThemeBackgroundExtent(
     SafeThemeHandle hTheme,
     HandleRef hdc,
     int iPartId,
     int iStateId,
     [In] CRECT pContentRect,
     CRECT pExtentRect);
 public static extern int GetThemeBackgroundContentRect(
     SafeThemeHandle hTheme,
     HandleRef hdc,
     int iPartId,
     int iStateId,
     [In] ref CRECT pBoundingRect,
     out CRECT pContentRect);
 public static extern MARGINS GetThemeMargins(
     SafeThemeHandle hTheme, IntPtr hdc, int iPartId, int iStateId, int iPropId, CRECT prc);
 public static extern SIZE GetThemePartSize(
     SafeThemeHandle hTheme, HandleRef hdc, int iPartId, int iStateId, CRECT prc, ThemeSize eSize);
 public static extern int GetThemeRect(
     SafeThemeHandle hTheme, int iPartId, int iStateId, int iPropId, out CRECT pRect);
 public static extern int DrawThemeText(
     SafeThemeHandle hTheme, HandleRef hdc, int iPartId, int iStateId,
     string pszText, int iCharCount, int dwTextFlags, int dwTextFlags2,
     [In] CRECT pRect);
 public static extern int DrawThemeBackground(
     SafeThemeHandle hTheme, HandleRef hdc, int partId, int stateId, [In] CRECT pRect, [In] CRECT pClipRect);
 public static extern HResult GetThemeMargins(
     SafeThemeHandle hTheme, IntPtr hdc, int iPartId, int iStateId,
     int iPropId, CRECT prc, out MARGINS pMargins);
 public static extern HResult GetThemePartSize(
     SafeThemeHandle hTheme, IntPtr hdc, int iPartId, int iStateId, CRECT prc, ThemeSize eSize, out SIZE psz);
 public static extern int GetThemePartSize(HandleRef hTheme, HandleRef hdc, int iPartId, int iStateId, [In] CRECT prc, ThemeSize eSize, [Out] SIZE psz);
 public static extern int GetThemeTextExtent(SafeThemeHandle hTheme, HandleRef hdc, int iPartId, int iStateId, [MarshalAs(UnmanagedType.LPWStr)] string pszText, int iCharCount, int dwTextFlags, [In] CRECT pBoundingRect, [Out] out Rectangle pExtentRect);
 public static extern int GetThemeBackgroundRegion(HandleRef hTheme, HandleRef hdc, int iPartId, int iStateId, [In] CRECT pRect, ref IntPtr pRegion);
 public static extern int GetThemeBackgroundContentRect(HandleRef hTheme, HandleRef hdc, int iPartId, int iStateId, [In] CRECT pBoundingRect, [Out] CRECT pContentRect);
 public static extern int HitTestThemeBackground(HandleRef hTheme, HandleRef hdc, int iPartId, int iStateId, int dwOptions, [In] CRECT pRect, HandleRef hrgn, [In] POINT ptTest, ref int pwHitTestCode);
 public static extern int DrawThemeParentBackground(HandleRef hwnd, HandleRef hdc, [In] CRECT prc);
 public static extern int DrawThemeEdge(HandleRef hTheme, HandleRef hdc, int iPartId, int iStateId, [In] CRECT pDestRect, int uEdge, int uFlags, [Out] CRECT pContentRect);