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