ok, here is my problem: my program gets the foregroundwindow's handle every 10 seconds and shows it in a messagebox after converting it with wsprintf. buf if i click on the desktop my program for example retrieves handle 360. ok, if i use a program that hooks the mouse, i can't find the handle 360 anywhere! but why? the mouse hook program shows that the desktops classname is SysListView, and the handle is another than 360. GetDesktopWindow also doesn't work, it retrieves another handle. why? tnx for help
Hi, maybe the value is in hex or maybe the handle changes at each start (i'm not sure) but when you execute a prog, the handle changes. Vom-bonjour:-()
You might want to find out what kind of window you're getting with GetClassName.
yeah, you're right, the handle changes every time i reboot my computer. the classname of the desktop is "program manager". but i don't know what i need this class name for. so, has anybody an idea what i could do to get the real desktops handle? tnx for replies