检测活动桌面是否激活
2008-03-08 12:43:12 来源:WEB开发网核心提示:bool __fastcall TWallFrm::ActiveDesktop(void){/*检测是否启动了Active Desktop是则返回true,否则返回false*/HWND hwnd;hwnd=FindWindow("PRogman",NULL);hwnd= FindWindowEx(
bool __fastcall TWallFrm::ActiveDesktop(void)
{
/*检测是否启动了Active Desktop
是则返回true,否则返回false*/
HWND hwnd;
hwnd=FindWindow("PRogman",NULL);
hwnd= FindWindowEx(hwnd,NULL,"SHELLDLL_DefView",NULL);
hwnd=FindWindowEx(hwnd,NULL,"Internet EXPlorer_Server",NULL);
if (hwnd>0)
return true;
else
return false;
}/*以上代码在c++ Builder5/Win98 SE下编译通过*/
更多精彩
赞助商链接