thz

Re: how to get the MAC address by .net program if the OS is win98? by hirf-spam-me-here

hirf-spam-me-here
Thu Jan 08 12:14:08 CST 2004

* "Cyrus" <CyrusChiu@kfsolution.com> scripsit:
[...]

You may want to translate this VB6 sample using p/invoke on 'Netbios' to
(VB).NET:

<http://www.gssg.de/macadr.zip>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Re: how to get the MAC address by .net program if the OS is win98? by Cyrus

Cyrus
Fri Jan 09 02:05:02 CST 2004

can snmp be used on win98?

"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:eBFOCOh1DHA.1184@TK2MSFTNGP10.phx.gbl...
> * "Cyrus" <CyrusChiu@kfsolution.com> scripsit:
> [...]
>
> You may want to translate this VB6 sample using p/invoke on 'Netbios' to
> (VB).NET:
>
> <http://www.gssg.de/macadr.zip>
>
> --
> Herfried K. Wagner [MVP]
> <http://www.mvps.org/dotnet>



Re: how to get the MAC address by .net program if the OS is win98? by Cyrus

Cyrus
Fri Jan 09 03:52:22 CST 2004

is p/invoke is only for c++, is it ok for vb.net?
do i need to install Netbios in win98?


"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:eBFOCOh1DHA.1184@TK2MSFTNGP10.phx.gbl...
> * "Cyrus" <CyrusChiu@kfsolution.com> scripsit:
> [...]
>
> You may want to translate this VB6 sample using p/invoke on 'Netbios' to
> (VB).NET:
>
> <http://www.gssg.de/macadr.zip>
>
> --
> Herfried K. Wagner [MVP]
> <http://www.mvps.org/dotnet>



Re: how to get the MAC address by .net program if the OS is win98? by hirf-spam-me-here

hirf-spam-me-here
Fri Jan 09 06:27:21 CST 2004

* "Cyrus" <CyrusChiu@kfsolution.com> scripsit:
> can snmp be used on win98?

Yes. The documentation says that 'Netbios' is supported since Windows 95.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Re: how to get the MAC address by .net program if the OS is win98? by Cyrus

Cyrus
Fri Jan 09 21:40:42 CST 2004

when i add reference to my xxx.dll
it turn my dll to Interop.xxx.dll
and said that can not find my entry point to my function
what should i do? many thz


"Cyrus" <CyrusChiu@kfsolution.com> wrote in message
news:uL6cwXp1DHA.1184@TK2MSFTNGP10.phx.gbl...
> is p/invoke is only for c++, is it ok for vb.net?
> do i need to install Netbios in win98?
>
>
> "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
> news:eBFOCOh1DHA.1184@TK2MSFTNGP10.phx.gbl...
> > * "Cyrus" <CyrusChiu@kfsolution.com> scripsit:
> > [...]
> >
> > You may want to translate this VB6 sample using p/invoke on 'Netbios' to
> > (VB).NET:
> >
> > <http://www.gssg.de/macadr.zip>
> >
> > --
> > Herfried K. Wagner [MVP]
> > <http://www.mvps.org/dotnet>
>
>



Re: how to get the MAC address by .net program if the OS is win98? by hirf-spam-me-here

hirf-spam-me-here
Sat Jan 10 06:16:04 CST 2004

* "Cyrus" <CyrusChiu@kfsolution.com> scripsit:
> when i add reference to my xxx.dll
> it turn my dll to Interop.xxx.dll
> and said that can not find my entry point to my function

What's "xxx.dll"? Is it a standard DLL? Then you won't need a
reference, youcan use the functions using 'Declare' or 'DllImport'.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Re: how to get the MAC address by .net program if the OS is win98? by anonymous

anonymous
Thu Feb 19 01:11:06 CST 2004

I declare as following

[DllImport('netapi32.dll', CharSet = CharSet.Ansi, SetLastError = True, EntryPoint = 'NETBIOS')]
function Netbios(ref NCB: tNCB): byte; external;

but the runtime always complaint can't find NETBIOS entry at netapi32.dll,

when I run a C++ without dotnet, it's ok.



Re: how to get the MAC address by .net program if the OS is win98? by Claes

Claes
Thu Feb 19 03:00:48 CST 2004

Looks like it's case sensitive. Try "Netbios" instead

/claes

"wy6688" <anonymous@discussions.microsoft.com> wrote in message
news:4868A007-9221-49E6-BC3D-18F5E13F2997@microsoft.com...
> I declare as following
>
> [DllImport('netapi32.dll', CharSet = CharSet.Ansi, SetLastError = True,
EntryPoint = 'NETBIOS')]
> function Netbios(ref NCB: tNCB): byte; external;
>
> but the runtime always complaint can't find NETBIOS entry at netapi32.dll,
>
> when I run a C++ without dotnet, it's ok.
>
>