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

        }
    }
  • 相关阅读:
    java--io流之转换流
    java--IO流之字节流、字符流
    java--递归
    java--IO流之File类
    java --JDBC
    2018-09-15JDBC事务详解1
    2018-09-10JSP内容和标签的查看权限+9个内置对象
    2018-09-12DBUtils工具包+DBCP连接池
    2018-09-08Cookie的发送和Cookie的读取+Session基本原理
    参考博客:URI和URL的区别
  • 原文地址:https://www.cnblogs.com/baishahe/p/1855929.html
Copyright © 2011-2022 走看看