This repository was archived by the owner on Mar 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathWinAPI.cs
More file actions
52 lines (44 loc) · 1.41 KB
/
WinAPI.cs
File metadata and controls
52 lines (44 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
namespace neoblox
{
using System;
using System.Runtime.InteropServices;
/// <summary>
/// Defines the <see cref="WinAPI" />.
/// </summary>
internal class WinAPI
{
/// <summary>
/// Defines the HOR_Positive.
/// </summary>
public const int HOR_Positive = 0X1;
/// <summary>
/// Defines the HOR_Negative.
/// </summary>
public const int HOR_Negative = 0X2;
/// <summary>
/// Defines the VER_Positive.
/// </summary>
public const int VER_Positive = 0X4;
/// <summary>
/// Defines the VER_Negative.
/// </summary>
public const int VER_Negative = 0X8;
/// <summary>
/// Defines the Center.
/// </summary>
public const int Center = 0X10;
/// <summary>
/// Defines the Blend.
/// </summary>
public const int Blend = 0X80000;
/// <summary>
/// The AnimateWindow.
/// </summary>
/// <param name="hwand">The hwand<see cref="IntPtr"/>.</param>
/// <param name="dwTime">The dwTime<see cref="int"/>.</param>
/// <param name="dwFlag">The dwFlag<see cref="int"/>.</param>
/// <returns>The <see cref="int"/>.</returns>
[DllImport("user32.dll", CharSet = CharSet.Auto)]
public static extern int AnimateWindow(IntPtr hwand, int dwTime, int dwFlag);
}
}