关于红色lt_msg_send_clt 的部分
c#里没见过这种用法啊。。。。orz
请问,在c#里该怎么实现段代码 - =
Private Declare Function lt_msg_enter_clt Lib "ltws32.dll" (ByVal Host As String
, ByVal Service As String, ByVal program As String, ByRef error_no As Integer) As Integer
Public Function CF_send(ByVal Buf As String, ByVal Buf_len As Short) As Short
error_no = lt_msg_send_clt(m_handle, Buf, CInt(Buf_len))
If error_no <> 0 Then
CS_GetWinSockERR()
End If
CF_send = CShort(error_no)
End Function
麻烦大家帮帮忙,谢谢了。。。
//反编译结果
[DllImport("ltws32.dll", CharSet=CharSet.Ansi, SetLastError=true, ExactSpelling=true)]
private static extern int lt_msg_enter_clt([MarshalAs(UnmanagedType.VBByRefStr)] ref string Host, [MarshalAs(UnmanagedType.VBByRefStr)] ref string Service, [MarshalAs(UnmanagedType.VBByRefStr)] ref string program, ref int error_no);
去这里下载反编译软件吧.省电力气做别的