如何禁止/启用屏幕保护等编程技巧
作者:徐景周(部分引自:soundman32、jhawkzz)
1. 如何激活和关闭ie浏览器
//激活并打开ie
void lounchie()
{
hwnd h=findwindowex(null,null,null,
"microsoft internet explorer") ;
shellexecute(h,"open","c:\\simple.html",
null,null,sw_shownormal);
}
//关闭ie及其它应用
void closeie()
{
int app=bsm_applications;
unsigned long bsm_app=(unsigned long )app;
broadcastsystemmessage(bsf_postmessage,&bsm_app,