[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dotgnu-pnet-commits] pnetlib ./ChangeLog System.Drawing.Win32/Win32.cs
From: |
Deryk Robosson |
Subject: |
[dotgnu-pnet-commits] pnetlib ./ChangeLog System.Drawing.Win32/Win32.cs |
Date: |
Tue, 30 May 2006 13:33:33 +0000 |
CVSROOT: /cvsroot/dotgnu-pnet
Module name: pnetlib
Branch:
Changes by: Deryk Robosson <address@hidden> 06/05/30 13:33:32
Modified files:
. : ChangeLog
System.Drawing.Win32: Win32.cs
Log message:
Implement MarshalAs where required.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/dotgnu-pnet/pnetlib/ChangeLog.diff?tr1=1.2408&tr2=1.2409&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/dotgnu-pnet/pnetlib/System.Drawing.Win32/Win32.cs.diff?tr1=1.26&tr2=1.27&r1=text&r2=text
Patches:
Index: pnetlib/ChangeLog
diff -u pnetlib/ChangeLog:1.2408 pnetlib/ChangeLog:1.2409
--- pnetlib/ChangeLog:1.2408 Mon May 29 11:47:22 2006
+++ pnetlib/ChangeLog Tue May 30 13:33:32 2006
@@ -1,3 +1,8 @@
+2006-05-30 Deryk Robosson <address@hidden>
+
+ * System.Drawing.Win32/Win32.cs: Add MarshalAs attributes where
+ required.
+
2006-05-29 Heiko Weiss <address@hidden>
* System.Windows.Forms/TabControl.cs: fixed SelectedIndex and
Index: pnetlib/System.Drawing.Win32/Win32.cs
diff -u pnetlib/System.Drawing.Win32/Win32.cs:1.26
pnetlib/System.Drawing.Win32/Win32.cs:1.27
--- pnetlib/System.Drawing.Win32/Win32.cs:1.26 Sun Nov 21 01:14:32 2004
+++ pnetlib/System.Drawing.Win32/Win32.cs Tue May 30 13:33:32 2006
@@ -901,19 +901,24 @@
public static extern int GetSystemMetrics (SystemMetricsType nIndex);
[DllImport("user32")] //ANSI
+ [return: MarshalAs(UnmanagedType.Bool)]
public static extern bool SystemParametersInfoA(SystemParametersAction
uiAction, uint uiParam, out RECT pvParam, uint fWinIni );
[DllImport("user32")] //ANSI
+ [return: MarshalAs(UnmanagedType.Bool)]
public static extern bool SystemParametersInfoA(SystemParametersAction
uiAction, uint uiParam, out int pvParam, uint fWinIni );
[DllImport("user32")] //ANSI
+ [return: MarshalAs(UnmanagedType.Bool)]
public static extern bool SystemParametersInfoA(SystemParametersAction
uiAction, uint uiParam, out bool pvParam, uint fWinIni );
[DllImport("user32")] //ANSI
+ [return: MarshalAs(UnmanagedType.Bool)]
public static extern bool SystemParametersInfoA(uint uiAction, uint
uiParam, ref NONCLIENTMETRICS pvParam,uint fWinIni);
//Get font information
[DllImport("gdi32")]
+ [return: MarshalAs(UnmanagedType.Bool)]
public static extern bool GetTextMetricsA( IntPtr hdc, out TEXTMETRIC
lptm);
//Measure size and width of text
@@ -930,18 +935,23 @@
public static extern int FillRect(IntPtr hDC, ref RECT lprc, IntPtr
hbr);
[DllImport("user32")] //ANSI
+ [return: MarshalAs(UnmanagedType.Bool)]
public static extern bool SetWindowTextA( IntPtr hWnd, string lpString);
[DllImport("user32")]
+ [return: MarshalAs(UnmanagedType.Bool)]
public static extern bool GetWindowRect( IntPtr hWnd, out RECT lpRect );
[DllImport("user32")]
+ [return: MarshalAs(UnmanagedType.Bool)]
public static extern bool InvalidateRect(IntPtr hWnd, ref RECT hRgn,
bool bErase);
[DllImport("user32")]
+ [return: MarshalAs(UnmanagedType.Bool)]
public static extern bool InvalidateRect(IntPtr hWnd, IntPtr hRgn, bool
bErase);
[DllImport("user32")]
+ [return: MarshalAs(UnmanagedType.Bool)]
public static extern bool TrackMouseEvent( ref TRACKMOUSEEVENT
lpEventTrack);
[DllImport("user32")]
@@ -951,6 +961,7 @@
public static extern IntPtr LoadCursorA( IntPtr hInstance, CursorName
lpCursorName);
[DllImport("user32")]
+ [return: MarshalAs(UnmanagedType.Bool)]
public static extern bool DestroyWindow( IntPtr hWnd );
[DllImport("user32")]
@@ -963,18 +974,22 @@
public static extern IntPtr GetFocus();
[DllImport("user32")]
+ [return: MarshalAs(UnmanagedType.Bool)]
public static extern bool CloseWindow(IntPtr hWnd);
[DllImport("user32")]
public extern static int GetSysColor(int nIndex);
[DllImport("gdi32")]
+ [return: MarshalAs(UnmanagedType.Bool)]
public static extern bool Arc( IntPtr hdc, int nLeftRect,int nTopRect,
int nRightRect, int nBottomRect, int nXStartArc, int nYStartArc, int nXEndArc,
int nYEndArc );
[DllImport("gdi32")]
+ [return: MarshalAs(UnmanagedType.Bool)]
public static extern bool Pie( IntPtr hdc, int nLeftRect,int nTopRect,
int nRightRect, int nBottomRect, int nXRadial1, int nYRadial1, int nXRadial2,
int nYRadial2 );
[DllImport("gdi32")]
+ [return: MarshalAs(UnmanagedType.Bool)]
public static extern bool Ellipse( IntPtr hdc, int nLeftRect, int
nTopRect, int nRightRect, int nBottomRect );
[DllImport("gdi32")]
@@ -984,6 +999,7 @@
public static extern int SetBkColor( IntPtr hdc,int crColor);
[DllImport("user32")]
+ [return: MarshalAs(UnmanagedType.Bool)]
public static extern bool IsWindowVisible( IntPtr hWnd);
[DllImport("gdi32")]
@@ -1002,6 +1018,7 @@
public static extern int GetWindowLongA( IntPtr hWnd, SetWindowLongType
nIndex);
[DllImport("user32")]
+ [return: MarshalAs(UnmanagedType.Bool)]
public static extern bool RedrawWindow( IntPtr hWnd, IntPtr lprcUpdate,
IntPtr hrgnUpdate, RedrawWindowFlags flags);
[DllImport("user32")]
@@ -1014,6 +1031,7 @@
public static extern IntPtr CreateRectRgn(int nLeftRect, int nTopRect,
int nRightRect, int nBottomRect);
[DllImport("gdi32")]
+ [return: MarshalAs(UnmanagedType.Bool)]
public static extern bool SetRectRgn(IntPtr hrgn, int nLeftRect, int
nTopRect, int nRightRect, int nBottomRect);
[DllImport("gdi32")]
@@ -1044,12 +1062,15 @@
public static extern uint SetTimer(IntPtr hwnd, uint nIDEvent, uint
uElapse, IntPtr lpTimerFunc);
[DllImport("user32")]
+ [return: MarshalAs(UnmanagedType.Bool)]
public static extern bool KillTimer(IntPtr hwnd, uint uIDEvent);
[DllImport("user32")]
+ [return: MarshalAs(UnmanagedType.Bool)]
public static extern bool ScreenToClient( IntPtr hWnd, ref POINT
lpPoint );
[DllImport("user32")]
+ [return: MarshalAs(UnmanagedType.Bool)]
public static extern bool ClientToScreen( IntPtr hWnd, ref POINT
lpPoint );
[DllImport("user32")]
@@ -1089,12 +1110,14 @@
public static extern IntPtr GlobalLock( IntPtr hMem);
[DllImport("kernel32")]
+ [return: MarshalAs(UnmanagedType.Bool)]
public static extern bool GlobalUnlock(IntPtr hMem);
[DllImport("gdi32")]
public static extern int SaveDC( IntPtr hdc );
[DllImport("gdi32")]
+ [return: MarshalAs(UnmanagedType.Bool)]
public static extern bool RestoreDC( IntPtr hdc, int nSavedDC );
[DllImport("gdi32")]
@@ -1110,6 +1133,7 @@
public static extern IntPtr CreateIconIndirect(ref ICONINFO piconinfo);
[DllImport("gdi32")]
+ [return: MarshalAs(UnmanagedType.Bool)]
public static extern bool DeleteDC(IntPtr hdc);
[DllImport("kernel32")]
- [dotgnu-pnet-commits] pnetlib ./ChangeLog System.Drawing.Win32/Win32.cs,
Deryk Robosson <=