Jump to content

WMI object help, don't know how to open a class


Recommended Posts

Hi, It's the first time I'm working with objects/classes

How do I get to this class: https://msdn.microsoft.com/en-us/library/system.net.dns(v=vs.110).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-2

I tried

$ODNS = ObjCreate("System.Net.Dns")
MsgBox(0,'',IsObj($ODNS))

but outputs "0" 

PS: Didn't find any script using System.Net.Dns in here :|

Heroes, there is no such thing

One day I'll discover what IE.au3 has of special for so many users using it.
C'mon there's InetRead and WinHTTP, way better
happy.png

Link to comment
Share on other sites

That is not WMI, it is .NET Framework interaction.

There seems to be a bunch of threads with people working on this, and I even found some that get the same results as you. I searched google with this:

site:autoitscript.com/forum .net class
This might be helpful?

'?do=embed' frameborder='0' data-embedContent>>

Search on your own and maybe you will find something... but I wonder what is it you are trying to ultimately accomplish?

Link to comment
Share on other sites

I'm trying to get every lan computer/phone connected to my wifi network name through System.Net.Dns.GetHostEntry(IP)

gethostbyaddr also works, but now is just for seeing what is the fastest :)

Heroes, there is no such thing

One day I'll discover what IE.au3 has of special for so many users using it.
C'mon there's InetRead and WinHTTP, way better
happy.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...