> Various searches on help and the dot net mails have drawn a bit of a > blank: > > How do you get the MAC address as previously derived from: > > Private Declare Function Netbios Lib "netapi32.dll" _ > (pncb As NET_CONTROL_BLOCK) As Byte > > > Under VB.Net?
Did you try just typing that in? It's exactly the same. :) The only thing that's (potentially) different is the mapping of the NCB structure. Depending on it's complexity, which I don't recall and don't have time check right now, it may also just as straight forward. Otherwise you may need to use the StructLayout and FieldOffset attributes. HTH, Drew [ .NET MVP | weblog: http://radio.weblogs.com/0104813/ ] You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.