判断当前Windows系统是win2000,winXP,winVista,win2003,win7... private static IntPtr GetSysTrayWnd() { IntPtr handle = FindWindow(Shell_TrayWnd, null); handle = FindWindowEx(handle, IntPtr.Zero, TrayNotifyWnd, null); if (IsWindowsXP || IsWindows2000 || IsWindows2003 || IsWin