Главная
Новый форум
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Как получить?
Goto page Previous  1, 2
 
Post new topic   Reply to topic   printer-friendly view     Forum Index -> Программирование в БЭСТ-4
View previous topic :: View next topic  
Author Message
shura_k



Joined: 10 Oct 2003
Posts: 342
Location: Александр
Occupation: Специалист
Interests: Калининград

PostPosted: 11 Nov 2005 12:26    Post subject: Reply with quote

Вообщем 3-ий параметр это и есть MAC ! Но он не в читаемом виде
Вот как можно его перевести в строку, делал на скорую руку, поэтому код корявый

local mac,i,a
a:=HWINFONETADAPTERS()
mac:=''
for i:=1 to 6
mac:=mac+ntoc(asc(byterightsh(substr(a[1][3],i,1),4)),16,1,"0")+ntoc(Asc(byterightsh(byteleftsh(substr(a[1][3],i,1), 4), 4)),16,1,"0")
next
sayandwait(mac)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view     Forum Index -> Программирование в БЭСТ-4 All times are GMT + 4 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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 © phpBB Group

Rambler
Rambler's Top100 Рейтинг@Mail.ru