检测活动桌面是否激活
下面是个检测活动桌面是否激活教程,撑握了其技术要点,学起来就简单多了。赶紧跟着图老师小编一起来看看吧!
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 (hwnd0)
return true;
else
return false;
}/*以上代码在c++ Builder5/Win98 SE下编译通过*/