public static extern unsafe HResult GetThemeMargins( SafeThemeHandle hTheme, User32.SafeDCHandle hdc, int iPartId, int iStateId, int iPropId, [Friendly(FriendlyFlags.In | FriendlyFlags.Optional)] RECT *prc, out MARGINS pMargins);
public static extern User32.SafeDCHandle CreateCompatibleDC(User32.SafeDCHandle hDC);
public static extern IntPtr CreateCompatibleBitmap(User32.SafeDCHandle hDC, int nWidth, int nHeight);
public static extern IntPtr SelectObject(User32.SafeDCHandle hDC, IntPtr hObject);
public static extern bool DeleteDC(User32.SafeDCHandle hDC);
public static extern int GetDeviceCaps( User32.SafeDCHandle hdc, int nIndex);