http://expert.csdn.net/Expert/topic/2131/2131541.xml?temp=8.738345E-02

解决方案 »

  1.   

    这样[DllImport("user32.dll")]
    public static extern int MessageBox(int hWnd,String pText,String pCaption,int uType);String pText = "Hello World!";
    String pCaption = "PInvoke Test";
    MessageBox(0, pText, pCaption, 0);
      

  2.   

    [DllImport("winmm.dll")]
    public static extern long PlaySound(String lpszName, long hModule, long dwFlags);
    这样
      

  3.   

    可以呀~[DllImport("DLL名")]
      函数
      

  4.   

    download API EXPLORER from http://zpcity.com/arli/