03-14-2011 08:35 AM
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
03-14-2011 09:20 AM
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).
03-14-2011 10:17 AM
you might also look for my library iptools.llb. It should be a good starting point if not already the solution.
03-17-2011 03:26 AM
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?
03-17-2011 05:48 AM
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.