Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Mac Physical address ..

Posted on 2005-03-29
3
Medium Priority
?
376 Views
Last Modified: 2010-04-05
Hi.

Is there a way to get the Physical address of the NIC ?

Thanks in advance.
0
Comment
Question by:CodedK
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
TheRealLoki earned 1200 total points
ID: 13655805
if you mean to get the MAC address, here is a function

function GetMACAdress: String;
var
hr:HRESULT;
m_TGUID:TGUID;
handle : THandle;
WinVer:_OSVersionInfoA;
temp : string;
UuidCreateFunc : function (var guid: TGUID):HResult;stdcall;

begin
  handle := LoadLibrary('RPCRT4.DLL');
  WinVer.dwOSVersionInfoSize := sizeof(WinVer);
  getversionex(WinVer);

  if WinVer.dwMajorVersion >= 5 then {Windows 2000 }
   @UuidCreateFunc := GetProcAddress(Handle, 'UuidCreateSequential')
   else @UuidCreateFunc := GetProcAddress(Handle, 'UuidCreate') ;

  hr:=UuidCreateFunc(m_TGUID);
  if failed(hr) then
     RaiseLastWin32Error;

  temp := GUIDToString(m_TGUID);
  delete(temp,1,lastdelimiter('-',temp));
  delete(temp,pos('}',temp),1);
  result := temp;
end;
0
 
LVL 16

Author Comment

by:CodedK
ID: 13656242
Thank u very much.

I increased the point to 300.
Immediate response...and all that ...

Thank u.. :)
0
 
LVL 17

Expert Comment

by:TheRealLoki
ID: 13657769
thanks! :-)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question