在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
1.webBrowser的浏览器为ie。 2.通过清除ie缓存即可。 3.代码调用如下: public enum ShowCommands : int { SW_HIDE = 0, SW_SHOWNORMAL = 1, SW_NORMAL = 1, SW_SHOWMINIMIZED = 2, SW_SHOWMAXIMIZED = 3, SW_MAXIMIZE = 3, SW_SHOWNOACTIVATE = 4, SW_SHOW = 5, SW_MINIMIZE = 6, SW_SHOWMINNOACTIVE = 7, SW_SHOWNA = 8, SW_RESTORE = 9, SW_SHOWDEFAULT = 10, SW_FORCEMINIMIZE = 11, SW_MAX = 11 } [DllImport("shell32.dll")] static extern IntPtr ShellExecute(IntPtr hwnd, string lpOperation, string lpFile, string lpParameters, string lpDirectory, ShowCommands nShowCmd); ShellExecute(IntPtr.Zero, "open", "rundll32.exe", " InetCpl.cpl,ClearMyTracksByProcess 8", "", ShowCommands.SW_HIDE); 其中ClearMyTracksByProcess 可进行选择设置 : Temporary Internet Files (Internet临时文件) ClearMyTracksByProcess 8 Cookies ClearMyTracksByProcess 2 History (历史记录) ClearMyTracksByProcess 1 Form. Data (表单数据) ClearMyTracksByProcess 16 Passwords (密码) ClearMyTracksByProcess 32 Delete All (全部删除) ClearMyTracksByProcess 255
|
请发表评论