Files
VenomRat-SourceCode/StreamLibrary/src/NativeMethods.cs
Anonymous 85f5411b6e VenomRat
2023-07-29 23:37:10 +05:30

20 lines
718 B
C#

using System;
using System.Runtime.InteropServices;
namespace StreamLibrary.src;
public class NativeMethods
{
[DllImport("msvcrt.dll", CallingConvention = CallingConvention.Cdecl)]
public unsafe static extern int memcmp(byte* ptr1, byte* ptr2, uint count);
[DllImport("msvcrt.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern int memcmp(IntPtr ptr1, IntPtr ptr2, uint count);
[DllImport("msvcrt.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern int memcpy(IntPtr dst, IntPtr src, uint count);
[DllImport("msvcrt.dll", CallingConvention = CallingConvention.Cdecl)]
public unsafe static extern int memcpy(void* dst, void* src, uint count);
}