Buen d铆a,
驴Hay alguna funci贸n o forma para conocer el MAC address de una pc desde una app?
Gracias.
Rolando ![]()
Buen d铆a,
驴Hay alguna funci贸n o forma para conocer el MAC address de una pc desde una app?
Gracias.
Rolando ![]()
Si
mira el ejemplo getmac.prg de los samples
Gracias Daniel,
驴En donde encuentro la funci贸n "GetAdaptersInfo" necesaria para compilar?
Rolando ![]()
Ya encontr茅 la lib.
Funciona perfecto.
Gracias.
Rolando ![]()
rolando wrote:Ya encontr茅 la lib.Y cual es esa libreria.
Hola JM,
La funci贸n "GetAdaptersInfo" est谩 en la "IPHLPAPI.LIB" y, esta lib, est谩 en la carpeta "PSDK" del BCC582.
Saludos.
Rolando ![]()
rolando wrote:La funci贸n "GetAdaptersInfo" est谩 en la "IPHLPAPI.LIB" y, esta lib, est谩 en la carpeta "PSDK" del BCC582.Gracias, muchas gracias.
{D510A198-53D6-4F6E-A3E5-D83CCFD25081}
Intel(R) 82579LM Gigabit Network Connection - Minipuerto del administrador de paquetes
3C-FF-66-CC-2E-D0
2
6
VERDADERO
192.168.1.254
192.168.1.1
FALSO
0.0.0.0
0.0.0.0#define ADP_NAME 聽 聽 聽 聽1 聽//An ANSI character string of the name of the adapter. (STRING)
#define ADP_DESCRIPTION 2 聽//An ANSI character string that contains the description
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽//of the adapter. (STRING)
#define ADP_ADDRESS 聽 聽 3 聽//The hardware address for the adapter (STRING)
#define ADP_INDEX 聽 聽 聽 4 聽//The adapter index.
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽//The adapter index may change when an adapter is disabled
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽//and then enabled, or under other circumstances,
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽//and should not be considered persistent.(NUMERIC)
#define ADP_TYPE 聽 聽 聽 聽5 聽//The adapter type. see define list type (bellow) (NUMERIC)
#define ADP_DHCPENABLED 6 聽//An option value that specifies whether the dynamic host
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽//configuration protocol (DHCP) is enabled for this adapter.(LOGICAL)
#define ADP_ADDRESSLIST 7 聽//The list of IPv4 addresses associated with this adapter(STRING)
#define ADP_GATEWAY 聽 聽 8 聽//The IPv4 address of the gateway for this adapter (STRING)
#define ADP_DHCPSERVER 聽9 聽//The IPv4 address of the DHCP server for this adapter represented(STRING)
#define ADP_HAVEWINS 聽 聽10 //An option value that specifies whether this adapter uses (LOGICAL)
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽//the Windows Internet Name Service (WINS).(LOGICAL)
#define ADP_PRIMARY 聽 聽 11 //the IPv4 address of the primary WINS server
#define ADP_SECUNDARY 聽 12 //The IPv4 address of the secondary WINS server