引用本文:
【打印本页】   【下载PDF全文】   查看/发表评论  下载PDF阅读器  关闭
←前一篇|后一篇→ 过刊浏览    高级检索
本文已被:浏览 2051次   下载 2148 本文二维码信息
码上扫一扫!
分享到: 微信 更多
用VC++设计的多线程关机程序
宋铭利1,2, 郭 岗2,3, 何东健1
1.西北农林科技大学 信息工程学院;2.洛阳师范学院 计算机科学系;3.华中师范大学 计算机科学系
摘要:
以Client/Server程序设计理论为基础,通过对在网络程序设计中使用单线程和多线程不同连接方式的讨论,选择了在编制计算机实验室远程关机程序中的方法——多线程程序设计。并利用VC++6.0实现了远程关闭计算机、重新启动计算机、注销当前用户等功能,该程序适用于Win9X,Win2000和WinXP。
关键词:  API函数  异步通讯  关机  多线程
DOI:
分类号:
基金项目:河南省科技攻关项目(0424220249)
Computer's shutting-down program based on multi-thread model in VC++
Abstract:
Based on Client/Server programming theory,the paper discusses how to design program by single-thread or multi-thread designing.Then multi-thread's method was used to design program of shutting down computers at computer's laboratory.The use of VC++6.0 can reboot and shut down remote and local computers and logoff current user.The method applys to Win9X,WinXP and Win2000.
Key words:  API function  asynchronous communication  shutting down computer  multi-thread