update ExternDllHelper

This commit is contained in:
NaBian committed 2019-03-13 19:53:18 +08:00
1 parent 9ae19c9f85
commit ae28d7d603
2 files changed
+18

No files matched your search

@@ -19,6 +19,8 @@ namespace HandyControl.Tools
private const string Shell32 = "shell32.dll";
public delegate IntPtr WndProc(IntPtr hWnd, int msg, IntPtr wParam, IntPtr lParam);
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
public class NOTIFYICONDATA
{
@@ -40,6 +42,21 @@ namespace HandyControl.Tools
public int dwInfoFlags;
}
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
public class WNDCLASS_D
{
public int style;
public WndProc lpfnWndProc;
public int cbClsExtra = 0;
public int cbWndExtra = 0;
public IntPtr hInstance = IntPtr.Zero;
public IntPtr hIcon = IntPtr.Zero;
public IntPtr hCursor = IntPtr.Zero;
public IntPtr hbrBackground = IntPtr.Zero;
public string lpszMenuName = null;
public string lpszClassName = null;
}
[DllImport(Shell32, CharSet = CharSet.Auto)]
[ResourceExposure(ResourceScope.None)]
public static extern int Shell_NotifyIcon(int message, NOTIFYICONDATA pnid);
+1
View File
@@ -189,6 +189,7 @@
</Compile>
<Compile Include="UserControl\Controls\NotifyIconDemoCtl.xaml.cs">
<DependentUpon>NotifyIconDemoCtl.xaml</DependentUpon>
</Compile>
<Compile Include="UserControl\Controls\GravatarDemoCtl.xaml.cs">
<DependentUpon>GravatarDemoCtl.xaml</DependentUpon>
</Compile>