Skip to content

Commit

Permalink
#10, #80, version 0.9.2.20
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofknecht committed Apr 11, 2020
1 parent a0cdcb6 commit 61196e5
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion NativeDllImport/BringWindowToTop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public static partial class NativeMethods
[DllImport("user32.dll")]
private static extern bool IsIconic(IntPtr hWnd);

[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
[DllImport("user32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
private static extern IntPtr GetForegroundWindow();

[DllImport("user32.dll")]
Expand Down
2 changes: 1 addition & 1 deletion NativeDllImport/CreatePopupMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace SystemTrayMenu.DllImports
public static partial class NativeMethods
{
// The CreatePopupMenu function creates a drop-down menu, submenu, or shortcut menu. The menu is initially empty. You can insert or append menu items by using the InsertMenuItem function. You can also use the InsertMenu function to insert menu items and the AppendMenu function to append menu items.
[DllImport("user32", SetLastError = true, CharSet = CharSet.Auto)]
[DllImport("user32", SetLastError = true, CharSet = CharSet.Unicode)]
private static extern IntPtr CreatePopupMenu();

public static IntPtr User32CreatePopupMenu()
Expand Down
2 changes: 1 addition & 1 deletion NativeDllImport/DestroyMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace SystemTrayMenu.DllImports
public static partial class NativeMethods
{
// The DestroyMenu function destroys the specified menu and frees any memory that the menu occupies.
[DllImport("user32", SetLastError = true, CharSet = CharSet.Auto)]
[DllImport("user32", SetLastError = true, CharSet = CharSet.Unicode)]
private static extern bool DestroyMenu(IntPtr hMenu);

public static bool User32DestroyMenu(IntPtr hMenu)
Expand Down
2 changes: 1 addition & 1 deletion NativeDllImport/GetMenuDefaultItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace SystemTrayMenu.DllImports
public static partial class NativeMethods
{
// Determines the default menu item on the specified menu
[DllImport("user32", SetLastError = true, CharSet = CharSet.Auto)]
[DllImport("user32", SetLastError = true, CharSet = CharSet.Unicode)]
private static extern int GetMenuDefaultItem(IntPtr hMenu, bool fByPos, uint gmdiFlags);

public static int User32GetMenuDefaultItem(IntPtr hMenu, bool fByPos, uint gmdiFlags)
Expand Down
2 changes: 1 addition & 1 deletion NativeDllImport/TrackPopupMenuEx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace SystemTrayMenu.DllImports
public static partial class NativeMethods
{
// The TrackPopupMenuEx function displays a shortcut menu at the specified location and tracks the selection of items on the shortcut menu. The shortcut menu can appear anywhere on the screen.
[DllImport("user32.dll", ExactSpelling = true, CharSet = CharSet.Auto)]
[DllImport("user32.dll", ExactSpelling = true, CharSet = CharSet.Unicode)]
private static extern uint TrackPopupMenuEx(IntPtr hmenu, TPM flags, int x, int y, IntPtr hwnd, IntPtr lptpm);

internal static uint User32TrackPopupMenuEx(IntPtr hmenu, TPM flags, int x, int y, IntPtr hwnd, IntPtr lptpm)
Expand Down
4 changes: 2 additions & 2 deletions UserInterface/ShellContextMenu/ShellContextMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ private struct CMINVOKECOMMANDINFOEX
}

// Contains information about a menu item
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
private struct MENUITEMINFO
{
public MENUITEMINFO(string text)
Expand Down Expand Up @@ -707,7 +707,7 @@ private struct STGMEDIUM
}

// Defines the x- and y-coordinates of a point
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
private struct POINT
{
public POINT(int x, int y)
Expand Down
2 changes: 1 addition & 1 deletion Utilities/File/FileLnk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ private enum SLGP_FLAGS
SLGP_RAWPATH = 0x4
}

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
private struct WIN32_FIND_DATAW
{
public uint dwFileAttributes;
Expand Down
1 change: 0 additions & 1 deletion Utilities/FolderOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ ex is COMException ||
internal static bool IsHidden(string path, ref bool hiddenEntry)
{
bool isDirectoryToHide = false;
#warning #80
if (path.Length < 260)
{
FileAttributes attributes = File.GetAttributes(path);
Expand Down

0 comments on commit 61196e5

Please sign in to comment.