LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

GetIfEntry from Windows DLL

I want to Labview from a DLL file and a file Heard generate vi.
I need the function GetIfEntry from iphlpapi.dll to get from Windows the network status. Will create when the VI a message with the first times I can anfanagen nothing.
Can someone help me?
Appendix: Error message header file

Download All
0 Kudos
Message 1 of 5
(2,977 Views)

You would need to create a cluster that corresponds to the MIB_IFROW structure, and pass it in as a pointer. Do you know how to do this? Do you know how to call DLLs in LabVIEW? If not, you should read over the LabVIEW Help that covers how to call code written in text-based languages. You can also search the NI Knowledgebase for more information, such as this simple example: http://decibel.ni.com/content/docs/DOC-9069. You can also look at the "Call DLL" example that ships with LabVIEW (Help -> Find Examples).

0 Kudos
Message 2 of 5
(2,969 Views)

you might also look for my library iptools.llb. It should be a good starting point if not already the solution.

Rolf Kalbermatter
My Blog
0 Kudos
Message 3 of 5
(2,961 Views)

Thank you for your tool. This is super. I need the Iphlpapi.dll also the IP address of each adapter. Do I get out of the function GetAdaptersInfo?

0 Kudos
Message 4 of 5
(2,926 Views)

No, and GetIfEntry() won't give you that either. Basically GetIfEntry returns mostly the same information for a single interface than the function GetIfTable() I used, only the function I used returns all interfaces in one go. The function returns the physical (MAC) address but to get the logical network address you would need to use a different function.

Rolf Kalbermatter
My Blog
0 Kudos
Message 5 of 5
(2,913 Views)