Yxd · 2005-08-02 14:19:32 · 阅读: 486 gethostname Header: Declared in Winsock2.h. Library: Use Ws2_32.lib.