程序说明:
这个程序比较简单,大家自己看吧
计算机名就是你打开 控制面板-系统-网络标识-完整的计算机名称
程序代码:
form1
private declare function getcomputername lib "kernel32" alias "getcomputernamea" (byval lpbuffer as string, nsize as long) as long
private sub command1_click()
dim name as string, length as long
length = 225
name = string(length, chr(0))
getcomputername name, length
name = left(name, length)
label1.caption = name
end sub
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器