How read a Mac Address of a pc ?
Falconi Silvio
How read a Mac Address of a pc ?
GetNetCardId()I try it allready but it return a array ....
Hi SIlvio:
Function GetMacAdd()
local aMac, cRet
TRY
aMac := GetNetCardID()
CATCH
aMac := ""
END
IF VALTYPE(aMac) = "U" // no hay tarjera de red instalada
Return("")
EndIf
IF VALTYPE(aMac) = "A" // hay varias tarjetas de red
If LEN(aMac) = 0
cRet := ""
Else
cRet := aMac[1]
EndIf
EndIf
If VALTYPE(aMac) = "C"
cRet := aMac // una sola t de red
EndIf
Return(cRet)
but for each computer there an unique mac address???
Each ethernet card has a unique mac address .. it is the network card not the computer. Some computers may have more than one ethernet card in them .. that is why you may get the array with multiple addresses.
Rick Lipkin
I want protect My application with this system but I can have one pc not with net card ... and then How I protect it ?
How can read the key serial of the computer ( no hdserial)
Silvo
There is NO good answer .. I am in State gov here with over 4k users .. One thing that I can tell you .. computers get moved, network cards go bad, infrastructure changes, new computers are always moved in and put in place, virus cause all kinds of problems and hard drives that have to be re-formatted ..
Just don't think a 'perfect' solution would be to rely on a Mac address .. just too much of a ( possible ) moving target. If you are looking at a small group of people using your application .. perhaps a 'dongle' attached to a serial, usb or parallel port wouild be better ..
Just my 2 cents worth ..
Rick