Skip to content

Commit 84871e5

Browse files
committed
v2.5.5
1 parent bc3c91f commit 84871e5

File tree

9 files changed

+40
-6
lines changed

9 files changed

+40
-6
lines changed

.vs/QuickLibrary/v16/.suo

-15 KB
Binary file not shown.
0 Bytes
Binary file not shown.

QuickLibrary/LangMan.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ public static string Get(string str)
2929
}
3030
catch
3131
{
32-
return str;
32+
3333
}
34+
return str;
3435
}
3536
}
3637
}

QuickLibrary/NativeMan.cs

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ public static class NativeMan
2727
public const int CS_DBLCLKS = 0x8;
2828
public const int WM_NCPAINT = 0x0085;
2929
public const int WM_ACTIVATEAPP = 0x001C;
30+
public const int SW_SHOW = 5;
31+
public const int SEE_MASK_INVOKEIDLIST = 12;
32+
public const int WS_EX_TRANSPARENT = 0x20;
3033

3134
// ENUMS
3235

33-
/// <summary>
34-
/// Represents possible dialogbox command id values by the MB_GetString function.
35-
/// </summary>
3636
public enum DialogBoxCommandID : int
3737
{
3838
IDOK = 0,
@@ -78,6 +78,31 @@ public struct MARGINS
7878
public int Bottom;
7979
}
8080

81+
[StructLayout(LayoutKind.Sequential)]
82+
public struct SHELLEXECUTEINFO
83+
{
84+
public int cbSize;
85+
public uint fMask;
86+
public IntPtr hwnd;
87+
[MarshalAs(UnmanagedType.LPTStr)]
88+
public string lpVerb;
89+
[MarshalAs(UnmanagedType.LPTStr)]
90+
public string lpFile;
91+
[MarshalAs(UnmanagedType.LPTStr)]
92+
public string lpParameters;
93+
[MarshalAs(UnmanagedType.LPTStr)]
94+
public string lpDirectory;
95+
public int nShow;
96+
public IntPtr hInstApp;
97+
public IntPtr lpIDList;
98+
[MarshalAs(UnmanagedType.LPTStr)]
99+
public string lpClass;
100+
public IntPtr hkeyClass;
101+
public uint dwHotKey;
102+
public IntPtr hIcon;
103+
public IntPtr hProcess;
104+
}
105+
81106
// KERNEL32 METHODS
82107

83108
[DllImport("kernel32", SetLastError = true, CharSet = CharSet.Ansi)]
@@ -88,6 +113,9 @@ public struct MARGINS
88113

89114
// USER32 METHODS
90115

116+
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
117+
public static extern bool SetProcessDPIAware();
118+
91119
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
92120
public static extern IntPtr MB_GetString(int strId);
93121

@@ -131,6 +159,11 @@ public struct MARGINS
131159
[DllImport("Gdi32.dll", EntryPoint = "CreateRoundRectRgn")]
132160
public static extern IntPtr CreateRoundRectRgn(int nLeftRect, int nTopRect, int nRightRect, int nBottomRect, int nWidthEllipse, int nHeightEllipse);
133161

162+
// SHELL32 METHODS
163+
164+
[DllImport("shell32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
165+
public static extern bool ShellExecuteEx(ref SHELLEXECUTEINFO lpExecInfo);
166+
134167
// CUSTOM METHODS
135168

136169
public static string GetMessageBoxText(DialogBoxCommandID messageId)

QuickLibrary/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("2.5.4")]
36-
[assembly: AssemblyFileVersion("2.5.4")]
35+
[assembly: AssemblyVersion("2.5.5")]
36+
[assembly: AssemblyFileVersion("2.5.5")]
3737
[assembly: NeutralResourcesLanguage("en")]
512 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
512 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)