FIX Interop using Unicode in order to support for long strings / asian languages. (NTFY-11)

git-svn-id: https://svn.evolvesoftware.ch/repos/evolve.net/WPF/NotifyIcon@182 9f600761-6f11-4665-b6dc-0185e9171623
This commit is contained in:
Philipp Sumi
2013-11-17 14:54:06 +00:00
parent 6d505b1580
commit 4179f9f4ec
2 changed files with 3 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ namespace Hardcodet.Wpf.TaskbarNotification.Interop
/// values of the <see cref="IconDataMembers"/>
/// that were defined.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct NotifyIconData
{
/// <summary>
@@ -134,7 +134,7 @@ namespace Hardcodet.Wpf.TaskbarNotification.Interop
{
//we need to set another size on xp/2003- otherwise certain
//features (e.g. balloon tooltips) don't work.
data.cbSize = 504;
data.cbSize = 952; // NOTIFYICONDATAW_V3_SIZE
//set to fixed timeout
data.VersionOrTimeout = 10;