PDA

View Full Version : تشریح کلاس دسترسی به توابع api



ordebehesht
سه شنبه 19 آذر 1392, 20:18 عصر
میشه یکی این کلاس رو تشریح کنه

internal class NativeMethods
{
public const int HWND_BROADCAST = 0xffff;
public static readonly int WM_SHOWME = RegisterWindowMessage("WM_SHOWME");
[DllImport("user32")]
public static extern bool PostMessage(IntPtr hwnd, int msg, IntPtr wparam, IntPtr lparam);
[DllImport("user32")]
public static extern int RegisterWindowMessage(string message);
}


ممنون میشم اگه یکی بگه extern چیه نوع داده static چیه و چه تفاوتی با متد static‌ داره