这几个函数在winspool.drv文件中。跳EntryPointNotFoundException这个异常的原因可能是你在C#中的Dll函数声明有问题。

解决方案 »

  1.   

    能不能介绍一下在c#中怎么调用windowsAPI,例如我想发滚动条消息。
      

  2.   

    例如:
    [DllImport("kernel32.dll")]
    public static extern void Sleep(long dwMilliseconds);
      

  3.   

    调用API需要引用
    System.Runtime.InteropServices然后声明要引用的API
    如:
    [DllImport("KERNEL32", CharSet=System.Runtime.InteropServices.CharSet.Auto)]
    public static extern int GetDriveType(string lpRootPathName);然后调用GetDriveType方法就行了
      

  4.   

    调用API需要引用
    System.Runtime.InteropServices然后声明要引用的API
    如:
    [DllImport("KERNEL32", CharSet=System.Runtime.InteropServices.CharSet.Auto)]
    public static extern int GetDriveType(string lpRootPathName);然后调用GetDriveType方法就行了