AnsweredAssumed Answered

VRF-Double_Emails

Question asked by VRFuser on Jul 11, 1999
Hello James,

The following C program shows how to get MAC address. You can modify this
on DLL form which you can call from VEE.

-- // -----------------------------------------------------------------
  //_    __  Hisanori NOGUCHI          / Hewlett-Packard Japan, LTD.
// // // //                          /  SSV VXI Solution Group
// // //_//  Tel: +81(44)-812-9720   /   3-2-2 Sakado, Takatsu,
     //      FAX: +81(44)-812-5245  /    Kawasaki, 213, JAPAN
    //       E-Mail: hisanori_noguchi@om.jpn.hp.com
-----------------------------------------------------------------------

------- cut here ----
#include <windows.h>
#include <stdio.h>

void main()
{
        NCB   ncb;
        ADAPTER_STATUS stat;

        memset(&ncb, 0, sizeof(NCB));

        ncb.ncb_command     = NCBRESET;
        Netbios(&ncb);

        ncb.ncb_command     = NCBASTAT;
        ncb.ncb_buffer      = (PUCHAR)(&stat);
        ncb.ncb_length      = sizeof(ADAPTER_STATUS);
        ncb.ncb_callname[0] = '*';
        Netbios(&ncb);

        printf("%2.2X-%2.2X-%2.2X-%2.2X-%2.2X-%2.2X
",
                stat.adapter_address[0], stat.adapter_address[1],
                stat.adapter_address[2], stat.adapter_address[3],
                stat.adapter_address[4], stat.adapter_address[5]);
}
------- cut here ----


______________________________ Reply Separator _________________________________
Subject: vrf - How can I find a MAC address on a Network Card from
Author:  Non-HP-James.Atkin (James.Atkin@wireless.comdev.ca) at HP-Japan,mimegw2
Date:    99/07/08 22:30


Does anyone know if this can be done ?
perhapse on the the ActiveX controls will give this info ?
    
Any help would be appreciated.
    
Thanks
    
James


Outcomes