求救---怎样得到系统的默认浏览器???急!!!解决问题立即给分. 怎样通过VC得到系统的默认浏览器 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这个好像可以得到默认的浏览器的路径 HKEY hkRoot; HKEY hSubKey; char ValueName[256]; DWORD dwType; unsigned long cbValueName = 256; unsigned long cbDataValue = 256; unsigned char DataValue[256]; if(RegOpenKey(HKEY_CLASSES_ROOT,NULL,&hkRoot)==ERROR_SUCCESS) { if(RegOpenKeyEx(hkRoot,"htmlfile\\shell\\open\\command",0,KEY_ALL_ACCESS,&hSubKey)==ERROR_SUCCESS) { RegEnumValue(hSubKey,0,ValueName,&cbValueName,NULL,&dwType,DataValue,&cbDataValue); } } RegCloseKey(hSubKey); RegCloseKey(hkRoot); return (char*)DataValue; http://search.csdn.net/Expert/topic/539/539079.xml?temp=3.365725E-02 DrawText 和CRichEditCtrl 窗口的关闭按钮失效 求一个在vs2003下用VC++写的系统服务的例子(ATL) VECT模板数组中数据如何调整位置? 通过程序控制,打开一个任意文件,若该文件不存在(或路径不正确),怎样能弹出系统错误信息? 如何监控用户登陆和查看浏览过的网页 马上要交货。可。。。急。。在线等,请帮忙。 用vc++ 6.0如何存取sql server 2000数据库中的记录? 创建虚拟盘 关于MSDN的fwatch.c 线程与控件 文档程序里,多页打印的问题(在线等待)
HKEY hkRoot;
HKEY hSubKey;
char ValueName[256];
DWORD dwType;
unsigned long cbValueName = 256;
unsigned long cbDataValue = 256;
unsigned char DataValue[256]; if(RegOpenKey(HKEY_CLASSES_ROOT,NULL,&hkRoot)==ERROR_SUCCESS)
{
if(RegOpenKeyEx(hkRoot,"htmlfile\\shell\\open\\command",0,KEY_ALL_ACCESS,&hSubKey)==ERROR_SUCCESS)
{
RegEnumValue(hSubKey,0,ValueName,&cbValueName,NULL,&dwType,DataValue,&cbDataValue);
}
}
RegCloseKey(hSubKey);
RegCloseKey(hkRoot); return (char*)DataValue;