優れた Windows Forms プログラムを Linux に移植しようとしていますが、次のエラーが発生します。
System.EntryPointNotFoundException: GetUpdateRect
at (wrapper managed-to-native)
CDBurnerXP.Controls.NativeMethods:GetUpdateRectInternal
(intptr,System.Drawing.Rectangle&,bool)
at CDBurnerXP.Controls.NativeMethods.GetUpdateRect
(System.Windows.Forms.Control cntl) [0x0000f] in
<ce4ca0f630654e4c8c1f96509f1eae82>:0
Lubuntu 16.04.1 で NativeMethods:GetUpdateRect noon Monoへの C# 呼び出しをサポートする方法はありますか?
編集:
knocte さん、コメントありがとうございます。この編集は、この関数を参照しようとするコードの一部を引用することです (コメントでは書式設定が許可されていないため)。
[DllImport("user32.dll", EntryPoint = "GetUpdateRect", CharSet = CharSet.Auto)]
private static extern IntPtr GetUpdateRectInternal(IntPtr hWnd, ref Rectangle r, bool eraseBackground);