zoukankan      html  css  js  c++  java
  • c# 获得windows mobile 手机IE的历史记录

    c# 获得windows mobile 手机IE的历史记录

    //关键是找到历史记录在注册表中的保存位置

    using System;

    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;
    using Microsoft.Win32;  

    namespace ReadIeHistory
    {
        public partial class Form1 : Form
        {
            public Form1()
            {
                InitializeComponent();
            }

            public void initViewPort()
            {
                try
                {
                    RegistryKey hklm = Registry.LocalMachine;
                    RegistryKey software = hklm.OpenSubKey("Explorer").OpenSubKey("AddressHistory");
                    string[] hisKey = software.GetValueNames();
                    string hisUrl = "";
                    for (int i = 0; i < hisKey.Length; i++)
                    {
                        hisUrl += software.GetValue(hisKey[i]) + ";";
                    }
                }
                catch
                {
                    return;
                }
            }

        }
    }
  • 相关阅读:
    使用PaintCode便捷地实现动画效果
    程序员常用markdown语法记忆小结之博客园markdown编辑器的效果
    kafka-重复消费-1
    nosql
    ThreadLocal
    内存溢出、内存泄漏
    springboot邮件服务
    三次握手、四次挥手
    悲观锁乐观锁简单整理
    beanstalkd
  • 原文地址:https://www.cnblogs.com/baishahe/p/1855929.html
Copyright © 2011-2022 走看看