关闭窗口的代码 [英] code for shutting down windows

查看:69
本文介绍了关闭窗口的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道用于关闭窗口的一些c ++代码?

我想用borland c ++ builder来编写程序来关闭窗口。

-


Does anyone know some c++ code for shutting down windows?
I want to write a program using borland c++ builder to shut down windows.
--


推荐答案

是否有一些代码可以永久关闭它?


Patrick


" Jesper" < JE **** @ i-dont-want-spam.oek.dk> schrieb im Newsbeitrag

新闻:bd ********** @ news.net.uni-c.dk ...
Is there some code to shut it down forever ?

Patrick

"Jesper" <je****@i-dont-want-spam.oek.dk> schrieb im Newsbeitrag
news:bd**********@news.net.uni-c.dk...
有谁知道一些c ++关闭窗口的代码?
我想用borland c ++ builder编写一个关闭窗口的程序。
-
Does anyone know some c++ code for shutting down windows?
I want to write a program using borland c++ builder to shut down windows.
--


Jesper写道:
有没有人知道关闭windows的c ++代码?
我想用borland c ++ builder编写一个关闭windows的程序。
Does anyone know some c++ code for shutting down windows?
I want to write a program using borland c++ builder to shut down windows.




C ++语言没有关闭窗口的概念。你的

问题不属于这个新闻组的主题。你应该在一个处理Windows的新闻组中提出类似

这样的问题。


但是,因为我确实知道答案:


ExitWindowsEx(EWX_SHUTDOWN | EWX_FORCEIFHUNG,-1);


或者,如果您希望WinXP上的系统日志显示有意义的内容:


ExitWindowsEx(EWX_SHUTDOWN | EWX_FORCEIFHUNG,SHTDN_REASON_MAJOR_OTHER |

SHTDN_REASON_MINOR_OTHER | SHTDN_REASON_FLAG_PLANNED);


-

Corey Murtagh

电僧

Quidquid latine dictum sit,altum viditur!



The C++ language has no concept of "shutting down windows". Your
question is off topic for this newsgroup. You should ask questions like
this in a newsgroup which deals with Windows.

However, since I do actually know the answer:

ExitWindowsEx(EWX_SHUTDOWN | EWX_FORCEIFHUNG, -1);

Or if you want the system logs on WinXP to show something meaningful:

ExitWindowsEx(EWX_SHUTDOWN | EWX_FORCEIFHUNG, SHTDN_REASON_MAJOR_OTHER |
SHTDN_REASON_MINOR_OTHER | SHTDN_REASON_FLAG_PLANNED);

--
Corey Murtagh
The Electric Monk
"Quidquid latine dictum sit, altum viditur!"


我们我只能希望...(虽然我坚持了!)


Patrick Kowalzick < PA *************** @ web.de>在留言中写道

news:3e *********************** @ news.free.fr ...
We can only hope... (I''m stuck with it though!)

"Patrick Kowalzick" <pa***************@web.de> wrote in message
news:3e***********************@news.free.fr...
是否有一些代码可以永久关闭它?

Patrick

Jesper < JE **** @ i-dont-want-spam.oek.dk> schrieb im Newsbeitrag
新闻:bd ********** @ news.net.uni-c.dk ...
Is there some code to shut it down forever ?

Patrick

"Jesper" <je****@i-dont-want-spam.oek.dk> schrieb im Newsbeitrag
news:bd**********@news.net.uni-c.dk...
有谁知道关闭的c ++代码windows?
我想用borland c ++ builder编写一个程序来关闭
windows。 -
Does anyone know some c++ code for shutting down windows?
I want to write a program using borland c++ builder to shut down windows. --




这篇关于关闭窗口的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆