当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

    摘要: private void form1_load(object sender, system.eventargs e) { string constr = @"server = (local);"+ "user id = sa;"+ "password = 9933;"+ "da......
    摘要: 小弟近来有一些疑问,请高手一一解答,不胜感谢!是否传统的c/s结构的软件是不能在internet上运行的?为什么?那是否现在使用web service就可以解决这个问题?是如何解决的? ......


exitwindows函数怎么用

exitwindows函数怎么用??

NO.1   作者: lihonggen0

In   general   section  
  Const   EWX_LOGOFF   =   0  
  Const   EWX_SHUTDOWN   =   1  
  Const   EWX_REBOOT   =   2  
  Const   EWX_FORCE   =   4  
  Private   Declare   Function   ExitWindowsEx   Lib   "user32"   (ByVal   uFlags   As   Long,   ByVal   dwReserved   As   Long)   As   Long  
  Private   Sub   Form_Load()  
           
          msg   =   MsgBox("This   program   is   going   to   reboot   your   computer.   Press   OK   to   continue   or   Cancel   to   stop.",   vbCritical   +   vbOKCancel   +   256,   App.Title)  
          If   msg   =   vbCancel   Then   End  
          reboot   the   computer  
          ret&   =   ExitWindowsEx(EWX_FORCE   Or   EWX_REBOOT,   0)  
  End   Sub  
 


 ·后退怎么写    »显示摘要«
    摘要: 具体实例。 ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE