H
Cor said:Ok Ok Ok
But then minimal
FCNHTA
I will real start thinking(working) for it after my HKW
(is on the route).
sizeConst:=WSADESCRIPTION_LEN +-----Original Message-----
Hi Rudolf,
I'm sorry for kept you for so long. I've done some research on this issue
and wrote a short sample. Please define the WSADATA structure like the
following:
Private Const WSADESCRIPTION_LEN = 256
<StructLayout(LayoutKind.Sequential)> _
Public Structure WSADATA
Public wVersion As Short
Dim wHighVersion As Short
<MarshalAs(UnmanagedType.ByValTStr,
sizeConst:=WSADESCRIPTION_LEN +1)> _
Public szDescription As String
<MarshalAs(UnmanagedType.ByValTStr,
SocketsInitialize) I get a stack1)> _
Public szSystemStatus As String
Public iMaxSockets As Integer
Public iMaxUdpDg As Integer
Public lpVenderInfo As IntPtr
End Structure
Private Declare Function WSAStartup Lib "wsock32" (ByVal
wVersionRequired As Integer, ByRef lpWSADATA As WSADATA) As Integer
In your codes you can use it as:
Dim Data As New WSADATA
If WSAStartup(&H201, Data) = 0 Then
'Codes of your logic
End If
HTH
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
--------------------
| From: "Rudolf" <[email protected]>
| References: <[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
| Subject: Re: Ping in VB.Net
| Date: Wed, 24 Sep 2003 15:37:59 +0200
| Lines: 82
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#[email protected]>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: 165.165.25.85
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl! tk2msftngp13.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:140910
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| I attempted to do an upgrade of the vb6 code using winapi calls but this
| also does not work.
|
| When calling the WSAStartup function (in