Mac address or Serial Disk


#1

HI
I am looking for Mac address or Serial Disk with API in clarion

Thanks


#2

Call API GetAdaptersInfo, retrieve IP_ADAPTER_INFO groups (list of groups), loop throu each group, its Address member is an array, 6 first bytes should be Mac address. C++ example here


#3

Hi,

Take a look at GetDiskSerial from DevLib.
http://www.devlib.net/getdiskserial.htm

Regards

Johan de Klerk


#4

If you have WinEvent (which you should IMHO)

DriveSN=ds_GetDriveSerialNumber(EXEDrive &’:’)

Carl
IT Mates


#5

If you have it, look in the CHT (Clarion Handy Tools) toolkit - been there for ages


#6

Thank you indeed, being a new subscriber of CWHANDY I found
GetHardwareDriveSerial in CLASS METHOD DESCRIPTIONS FOR: HNDDISKEX
Thanks


#7

There’s a NetTalk function to get all sorts of networking info for each adapter int he machine, including the MAC address;
http://www.capesoft.com/docs/NetTalk10/NetTalkUtilityFunctions.htm#NetGetIPInfo