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;
                }
            }

        }
    }
  • 相关阅读:
    this 关键字
    Win10 删除“此电脑-文件夹”中的七个快捷方式
    ESLint 配置(三)Vue 项目
    ESLint 配置(二)Standard 和 Prettier
    ESLint 配置(一)基础配置
    简易FTP
    选课系统
    ATM+购物车
    ATM+购物车导图
    函数作业
  • 原文地址:https://www.cnblogs.com/baishahe/p/1855929.html
Copyright © 2011-2022 走看看