1 Star 1 Fork 1

liuzy88 / TxJsq

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
NativeMethods.cs 940 Bytes
Copy Edit Web IDE Raw Blame History
liuzy88 authored 2019-05-28 23:29 . fix
using System;
using System.Runtime.InteropServices;
namespace TxJsq
{
internal static class NativeMethods
{
[DllImport("user32.dll", CharSet = CharSet.Unicode)]
internal static extern int MessageBox(IntPtr hWnd, String text, String caption, uint type);
[DllImport("kernel32.dll")]
internal static extern IntPtr OpenProcess(uint dwDesiredAccess, bool bInheritHandle, int dwProcessId);
[DllImport("kernel32.dll")]
internal static extern bool ReadProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, byte[] buffer, IntPtr size, IntPtr lpNumberOfBytesRead);
[DllImport("kernel32.dll")]
internal static extern bool WriteProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, byte[] buffer, IntPtr size, IntPtr lpNumberOfBytesWritten);
[DllImport("kernel32.dll")]
internal static extern bool CloseHandle(IntPtr hObject);
}
}

Comment ( 0 )

Sign in to post a comment

C#
1
https://gitee.com/liuzy1988/TxJsq.git
git@gitee.com:liuzy1988/TxJsq.git
liuzy1988
TxJsq
TxJsq
master

Search

184635 d8eb8a04 1850385 161156 f1cf3f24 1850385