长庚书库民间中医秘方:求windows休眠的vb代码

来源:百度文库 编辑:中科新闻网 时间:2024/05/05 23:08:10
我有一段关机的代码 不知道怎样修改为休眠的代码

Set colOperatingSystems = GetObject("winmgmts:{(Shutdown)}").ExecQuery("Select * from Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
ObjOperatingSystem.Win32Shutdown(1)
Next

把Win32Shutdown(1)的数字改成几?