62 lines
1.8 KiB
C#
62 lines
1.8 KiB
C#
// Decompiled with JetBrains decompiler
|
|
// Type: Global.WinApi
|
|
// Assembly: Global, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
|
// MVID: C0AE7A64-EC5F-4076-AA61-B93AC1193B2E
|
|
// Assembly location: C:\Users\auvkk\Desktop\x64SimIR2\Global.dll
|
|
|
|
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Text;
|
|
|
|
|
|
namespace Global
|
|
{
|
|
public class WinApi
|
|
{
|
|
public const int SW_HIDE = 0;
|
|
public const int SW_SHOWNOACTIVATE = 4;
|
|
public const int SW_SHOW = 5;
|
|
|
|
[DllImport("user32.dll")]
|
|
public static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
|
|
|
|
[DllImport("user32.dll")]
|
|
public static extern bool ShowCursor(bool bShow);
|
|
|
|
[DllImport("msvcrt.dll", EntryPoint = "memcpy", CallingConvention = CallingConvention.Cdecl)]
|
|
public static extern IntPtr MemCopyArray(byte[] dest, byte[] src, int count);
|
|
|
|
[DllImport("msvcrt.dll", EntryPoint = "memcpy", CallingConvention = CallingConvention.Cdecl)]
|
|
public static extern IntPtr MemCopyPoint(IntPtr dest, IntPtr src, int count);
|
|
|
|
[DllImport("user32.dll")]
|
|
public static extern bool RegisterHotKey(IntPtr hWnd, int id, uint control, char vk);
|
|
|
|
[DllImport("user32.dll")]
|
|
public static extern bool UnregisterHotKey(IntPtr hWnd, int id);
|
|
|
|
[DllImport("kernel32")]
|
|
public static extern int GetPrivateProfileInt(
|
|
string lpAppName,
|
|
string lpKeyName,
|
|
int nDefault,
|
|
string lpFileName);
|
|
|
|
[DllImport("kernel32")]
|
|
public static extern int GetPrivateProfileString(
|
|
string lpAppName,
|
|
string lpKeyName,
|
|
string lpDefault,
|
|
StringBuilder lpReturnedString,
|
|
int nSize,
|
|
string lpFileName);
|
|
|
|
[DllImport("kernel32")]
|
|
public static extern bool WritePrivateProfileString(
|
|
string lpAppName,
|
|
string lpKeyName,
|
|
string lpString,
|
|
string lpFileName);
|
|
}
|
|
}
|