forked from ReClassNET/ReClass.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIRemoteMemoryWriter.cs
More file actions
20 lines (18 loc) · 892 Bytes
/
Copy pathIRemoteMemoryWriter.cs
File metadata and controls
20 lines (18 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using System;
namespace ReClassNET.Memory
{
public interface IRemoteMemoryWriter
{
/// <summary>Writes the given <paramref name="data"/> to the <paramref name="address"/> in the remote process.</summary>
/// <param name="address">The address to write to.</param>
/// <param name="data">The data to write.</param>
/// <returns>True if it succeeds, false if it fails.</returns>
bool WriteRemoteMemory(IntPtr address, byte[] data);
/// <summary>Writes the given <paramref name="value"/> to the <paramref name="address"/> in the remote process.</summary>
/// <typeparam name="T">Type of the value to write.</typeparam>
/// <param name="address">The address to write to.</param>
/// <param name="value">The value to write.</param>
/// <returns>True if it succeeds, false if it fails.</returns>
bool WriteRemoteMemory<T>(IntPtr address, T value) where T : struct;
}
}