forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Getting the hardware MAC address and IP address from Fortran

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
louis



Joined: 19 Oct 2005
Posts: 9

PostPosted: Wed Jan 10, 2007 5:38 pm    Post subject: Getting the hardware MAC address and IP address from Fortran Reply with quote

Is there a way of getting the hardware (eg ethernet card_ MAC address
and IP address from within a Fortran program without calling ipconfig ?

I can do it via
call system('ipconfig /all >ip.txt')
but this flashes up a DOS box because of the call to ipconfig.

I would like to use a Win API call to get this in a completely "silent" way
Back to top
View user's profile Send private message
Andrew



Joined: 09 Sep 2004
Posts: 232
Location: Frankfurt, Germany

PostPosted: Thu Jan 11, 2007 2:18 pm    Post subject: Reply with quote

The way to do this via the Win32 API is to use GetAdaptersInfo. You may find it easier (maybe even neccessary) to use C for the task. Info about the routine can be found at:

http://msdn2.microsoft.com/en-us/library/aa366062.aspx
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group