In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

MAC ADDRESS

Xailer professional forum in English
Responder
FRANK[1]
Mensajes: 63
Registrado: Jue May 20, 2010 11:25 am

MAC ADDRESS

Mensaje por FRANK[1] »

You can read the mac address with xailer?
someone can give me some suggestions?
Tanks
Frank
Maarten Roos
Mensajes: 126
Registrado: Lun Mar 29, 2010 10:24 am

MAC ADDRESS

Mensaje por Maarten Roos »

Hi Frank,
I use this:
FUNCTION GetMacAddress()
LOCAL nHKey := HKEY_LOCAL_MACHINE
LOCAL cRegPath := "SOFTWAREMicrosoftWindows Genuine Advantage"
LOCAL cRegKey := "MAC"
LOCAL cMac := ""
WITH OBJECT tregistry():Create()
:Root := nHKey
IF :OpenKey( cRegPath ) == 0
cMac := PADR(:GetString( cRegKey ),17)
:CloseKey()
ENDIF
:Destroy()
END WITH
RETURN cMac
FRANK[1]
Mensajes: 63
Registrado: Jue May 20, 2010 11:25 am

MAC ADDRESS

Mensaje por FRANK[1] »

Hi Maarten,
THANK YOU FOR TIP
THERE IS A WAY TO READ THE MAC ADDRESS DIRECTLY FROM NETWORK CARD?
"Maarten Roos" <m[dot]roos[at]ecem[dot]com> ha scritto nel messaggio
news:4d89b8e1$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Hi Frank,
>
> I use this:
>
> FUNCTION GetMacAddress()
> LOCAL nHKey := HKEY_LOCAL_MACHINE
> LOCAL cRegPath := "SOFTWAREMicrosoftWindows Genuine
> Advantage"
> LOCAL cRegKey := "MAC"
> LOCAL cMac := ""
>
> WITH OBJECT tregistry():Create()
> :Root := nHKey
> IF :OpenKey( cRegPath ) == 0
> cMac := PADR(:GetString( cRegKey ),17)
> :CloseKey()
> ENDIF
> :Destroy()
> END WITH
>
> RETURN cMac
jlalin
Mensajes: 926
Registrado: Sab Dic 25, 2010 11:10 pm

MAC ADDRESS

Mensaje por jlalin »

FRANK,
> THERE IS A WAY TO READ THE MAC ADDRESS DIRECTLY FROM NETWORK CARD?
In the spanish forum there is a old thread where Xavi published a function
to read it.
Regards,
José Lalí­n
Responder