به نام خدا سلام بر برنامه نویسان عزیز 😉 در این مطلب کد فراخوانی (Invoke) کردن MessageBox در Dll با user32.dll در #C را آماده کردم. انشاالله که این کد براتون مفید باشه.
کد فراخوانی (Invoke) کردن MessageBox در Dll با user32.dll در #C :
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using System.Text;
class Program
{
[DllImport("user32.dll")]
public static extern int MessageBox(IntPtr hwnd, String text, String caption, uint type);
static void Main(string[] args)
using System.Runtime.InteropServices;
using System.Collections.Generic;
using System.Text;
class Program
{
[DllImport("user32.dll")]
public static extern int MessageBox(IntPtr hwnd, String text, String caption, uint type);
static void Main(string[] args)