public static extern int GetObject(HandleRef hObject, int nSize, ref BITMAP bm);
public static extern int GetObject(IntPtr hgdiobj, int cbBuffer, ref BITMAP lpvObject);
public static extern int GetObject(HandleRef hObject, int nSize, ref BITMAP bm);
public static extern int GetObject(IntPtr hgdiobj, int cbBuffer, ref BITMAP lpvObject);