Check out the sample code there:
所在版块:
技术の宅
发贴时间:2004-06-16 15:35
用户信息
昵称:
Flying
经验: 17053
等级: 18 华新水车
资产:
17069
华新币
发贴: 16849
在线: 2864.2 小时
复制本帖HTML代码
我要回复↙
相关跟贴↙
平板模式
手机浏览
下一跟贴
只看此人
本帖链接
字体:
小
中
大
高亮
:
今天贴
X
昨天贴
X
前天贴
X
http://www.vbaccelerator.com/home/VB/Tips/How_to_Shutdown_the_System_in_Windows_9x_and_NT/article.asp
Note that there are a lot other stuff in the sample code. But what you should pay attention to is the part there the current process's privilege tokens are checked, and adjusted, in order to enable the process to shutdown the OS.
.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!
Flying @way
相关帖子
我要回复↙
↗回到正文
Is there any DOS command to reboot computer ?
-
flu
2004-06-16 10:26
(
0 bytes , 716reads
)
What's your OS?
-
Flying
2004-06-16 10:56
(
498 bytes , 491reads
)
Type help in cmd window
-
MrDJay
2004-06-16 10:38
(
34 bytes , 274reads
)
actually i am doing vb6.0 proj. any suggestion to reboot?
-
flu
2004-06-16 10:53
(
977 bytes , 305reads
)
you can use "-t 0" as indicated in my post above.
-
Flying
2004-06-16 10:58
(
264 bytes , 288reads
)
thank you! i see, i just want to find an easier method
-
flu
2004-06-16 11:01
(
0 bytes , 275reads
)
For VB programming, using the API is actually easier.
-
Flying
2004-06-16 11:05
(
52 bytes , 233reads
)
i use ExitWindowsEx , doesnot work? :(
-
flu
2004-06-16 11:15
(
0 bytes , 252reads
)
how does your code look like?
-
Flying
2004-06-16 11:56
(
254 bytes , 296reads
)
my code:
-
flu
2004-06-16 14:18
(
541 bytes , 257reads
)
cool...but
-
kelvin
2004-06-16 17:17
(
130 bytes , 273reads
)
The shutdown request may fail.
-
Flying
2004-06-16 17:38
(
189 bytes , 281reads
)
Check out the sample code there:
-
Flying
2004-06-16 15:35
(
332 bytes , 274reads
)
-_-!
-
flu
2004-06-16 16:00
(
0 bytes , 259reads
)
HELP command is not as powerful as man in the *nix world.
-
Flying
2004-06-16 10:48
(
117 bytes , 229reads
)