X-Aim – Diff between revs 1 and 3
?pathlinks?
Rev 1 | Rev 3 | |||
---|---|---|---|---|
1 | using System; |
1 | using System; |
|
2 | using System.Runtime.InteropServices; |
2 | using System.Runtime.InteropServices; |
|
3 | |
3 | |
|
4 | namespace X_Aim |
4 | namespace X_Aim |
|
5 | { |
5 | { |
|
6 | public static class Natives |
6 | public static class Natives |
|
7 | { |
7 | { |
|
8 | public const int SW_HIDE = 0; |
8 | public const int SwHide = 0; |
|
9 | |
9 | |
|
10 | public const int SW_SHOW = 5; |
10 | public const int SwShow = 5; |
|
11 | |
11 | |
|
12 | public const int SW_SHOWNORMAL = 1; |
12 | public const int SwShownormal = 1; |
|
13 | |
13 | |
|
14 | public const int SW_SHOWMAXIMIZED = 3; |
14 | public const int SwShowmaximized = 3; |
|
15 | |
15 | |
|
16 | public const int SW_RESTORE = 9; |
16 | public const int SwRestore = 9; |
|
17 | |
17 | |
|
18 | [DllImport("user32.dll")] |
18 | [DllImport("user32.dll")] |
|
19 | public static extern bool SetForegroundWindow(IntPtr hWnd); |
19 | public static extern bool SetForegroundWindow(IntPtr hWnd); |
|
20 | |
20 | |
|
21 | [DllImport("user32.dll")] |
21 | [DllImport("user32.dll")] |
|
22 | public static extern bool AllowSetForegroundWindow(uint dwProcessId); |
22 | public static extern bool AllowSetForegroundWindow(uint dwProcessId); |
|
23 | |
23 | |
|
24 | [DllImport("user32.dll")] |
24 | [DllImport("user32.dll")] |
|
25 | public static extern bool ShowWindow(IntPtr hWnd, int nCmdShow); |
25 | public static extern bool ShowWindow(IntPtr hWnd, int nCmdShow); |
|
26 | } |
26 | } |
|
27 | } |
27 | } |
|
28 | |
28 | |
|
29 |
|
29 |
|
|
30 | |
30 | |
|
31 | |
31 | |
|
32 | |
32 | |