I am writing a screen saver, and would like to detect an autohide taskbar to turn it off (to non-autohide). I found the function SHAppBarMessage with ABM_AUTOHIDEBAR, which takes a APPBARDATRA structure. I try to call it, but I do not get anything back. (return either null or zero). What should I put in the hwnd of the APPBARDATA structure to pass to the function (or do I have to initialize it, if yes with what?)
When I use ABM_GETSTATE, I guess I need the hwnd of the task bar, how else can I get the handle of the taskbar?