-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathNativeMethods.cs
More file actions
33 lines (23 loc) · 1005 Bytes
/
NativeMethods.cs
File metadata and controls
33 lines (23 loc) · 1005 Bytes
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
using System;
using System.Runtime.InteropServices;
namespace ClipPurSEditionBuilder
{
internal static class NativeMethods
{
#region For Animation
[DllImport("user32.dll")]
public static extern bool AnimateWindow(IntPtr hWnd, int time, Enums.AnimateWindowFlags flags);
#endregion
#region For Anti Virtual Machine
[DllImport("kernel32.dll", BestFitMapping = false, CharSet = CharSet.Unicode)]
internal static extern IntPtr GetModuleHandle(string lpModuleName);
[DllImport("Kernel32.dll", SetLastError = true, ExactSpelling = true)]
[return: MarshalAs(UnmanagedType.Bool)]
internal static extern bool CheckRemoteDebuggerPresent(IntPtr hProcess, [MarshalAs(UnmanagedType.Bool)]ref bool isDebuggerPresent);
#endregion
#region For Null Focus
[DllImport("user32.dll")]
public extern static IntPtr SetFocus(IntPtr hWnd);
#endregion
}
}