启动了服务端,客户端链接的时候,服务端自动调用checkpassword,但是之后就报错win32的内部异常。

经过1天的调试,发现是代理的声明问题:

正确:

 

    [UnmanagedFunctionPointer(CallingConvention.StdCall)]
    public delegate int CheckPassword(string username, int namelen, string password, int passlen);

 

相关文章:

  • 2021-12-02
  • 2021-05-24
  • 2021-11-03
  • 2021-09-21
  • 2021-11-22
  • 2021-06-06
  • 2021-11-29
  • 2022-01-28
猜你喜欢
  • 2022-01-05
  • 2021-09-11
  • 2021-06-16
  • 2021-12-03
  • 2021-07-01
  • 2021-07-17
  • 2021-05-27
相关资源
相似解决方案