DOS下网卡读取程序

#include<stdio.h>
#include<string.h>
#include<process.h>
void getNicID(char *nicID)
{
unsigned int rCX,rBX,rAX;
asm {
mov ah, 0xee;
int 0x21;
mov word ptr rAX,ax;
mov word ptr rBX,bx;
mov word ptr rCX,cx;
}
if(rAX!=0xee00) sprintf( nicID, “%04x%04x%04x”,rCX, rBX,rAX);
else sprintf( nicID, “000000000000”);
}
void main()
char myNetID[13];
{
getNicID(myNetID);
printf(“Nic ID is:%s\n”,myNetID);
}

相信可以帮好多人摆脱那个Q程序了

谢谢:rolleyes:

非常谢谢,有编译好的程序吗?
发一个给我,jjhugang@21CN.COM

要看你用网卡ID做什么了
我没有用来启动无盘的,我是在行业软件里面应用的.不好意思