Page 1 of 1
Need help with WNetGetConnection_()
Posted: Thu May 08, 2003 9:49 am
by delta69
Hello,
I'd like to get network connection info using WNetGetConnection_() API.
I cannot get this function working... Could someone help me ?
Thanks for your help !
Regards,
Delta69
Posted: Thu May 08, 2003 10:56 am
by Rings
search the resourcesite for 'NT-Send', whichs uses a lots of those NET-APis. And of course study the M$-Documentation.
Thanks for your help, but...
Posted: Sat May 10, 2003 7:17 am
by delta69
Hello,
Thanks for your help, I appreciate... But I'm afraid I've not the necessary skills to get the WNetGetConnection_() function work without additional help ...
If someone has already used this API before, I'm really intereted in seeing source code.
Regards,
Delta69
Posted: Sat May 10, 2003 3:36 pm
by Rings
something like this ?
Code: Select all
LenDestination=255
Source.s="D:\"
Destination.s=Space(256)
If OpenLibrary(1,"MPR.DLL")
result=CallFunction(1,"WNetGetConnectionA",@Source.s,@Destination.s,@LenDestination)
;If Result<>0 there is a Error
MessageRequester("Info",Str(Result)+":"+Str(LenDestination),0)
Else
Beep_(100,100)
MessageRequester("Info","DLL not found",0)
EndIf
End
Thank you !
Posted: Sun May 11, 2003 11:40 am
by delta69
Hello Rings;
Thanks a lot for your help, I made a big step !
By the way, the backslash in the source string seems unnecessary.
Once again, thank you !
Regards,
Delta69