به نام خدا سلام بر برنامه نویسان عزیز 😉 در این مطلب کد فراخوانی توابع DLL محلی ویندوز در #C را آماده کردم. انشاالله که این کد سی شارپ براتون مفید باشد.
کد فراخوانی توابع DLL محلی ویندوز در #C :
using System;
using System.Runtime.InteropServices;
class Test
{
[DllImport("user32.dll")]
public static extern int MessageBox(IntPtr h, string m, string c, int type);
public static void Main()
using System.Runtime.InteropServices;
class Test
{
[DllImport("user32.dll")]
public static extern int MessageBox(IntPtr h, string m, string c, int type);
public static void Main()