#include #include #include #include "iphlpapi.h" #pragma comment ( lib, "ws2_32.lib" ) #pragma comment ( lib, "Iphlpapi.lib" ) void main( int argc, char ** argv ) { int numberOfHost = 1; struct hostent *remoteHostent; //处理命令行参数 if ( argc == 3 ) numberOfHost = atoi( argv[2] ); if ( ( argc 3 ) || ( argc 2 ) ) { printf( "RmtHost v0.2 - Get remote HostName /MacAddres...
[ 查看全文 ]