Zhwang.SuperNotifyIcon.Taskbar.CreateAppBarData C# (CSharp) Method

CreateAppBarData() private static method

Creats an APPBARDATA struct with its hWnd member set to the task bar window.
private static CreateAppBarData ( ) : NativeMethods.APPBARDATA
return NativeMethods.APPBARDATA
        private static NativeMethods.APPBARDATA CreateAppBarData()
        {
            var appBar = new NativeMethods.APPBARDATA();
            appBar.hWnd = NativeMethods.FindWindow("Shell_TrayWnd", "");
            appBar.cbSize = (uint)Marshal.SizeOf(appBar);
            return appBar;
        }