资源简介
C# 封装强大浏览器组件csExWBv2.0.0.2_Includes_ComUtilities,最完整的.net浏览器控件.底层使用VC将IE的COM核心组建进行封装,上层又封装为.net组件.对于.net内置浏览器控件不满意的用户可以使用此控件
代码片段和文件信息
// ComUtilities.cpp : Implementation of DLL Exports.
#include “stdafx.h“
#include “resource.h“
#include “ComUtilities.h“
CCriticalSectionWrapper gb_CritSectWrapper;
CSimpleArray gCtrlInstances;
LPVOID gMainCtrlInstance;
BOOL gb_IsHttpRegistered;
BOOL gb_IsHttpsRegistered;
CComPtr gb_spCFHTTP;
CComPtr gb_spCFHTTPS;
HINSTANCE gb_thisInstance;
class CComUtilitiesModule : public CAtlDllModuleT< CComUtilitiesModule >
{
public :
DECLARE_LIBID(LIBID_ComUtilitiesLib)
DECLARE_REGISTRY_APPID_RESOURCEID(IDR_COMUTILITIES “{B35CD94C-3877-41D3-936C-9E1683C6182D}“)
};
CComUtilitiesModule _AtlModule;
#ifdef _MANAGED
#pragma managed(push off)
#endif
// DLL Entry Point
extern “C“ BOOL WINAPI DllMain(HINSTANCE hInstance DWORD dwReason LPVOID lpReserved)
{
if (dwReason == DLL_PROCESS_ATTACH)
{
//Default is false
gb_IsHttpRegistered = FALSE;
gb_IsHttpsRegistered = FALSE;
gMainCtrlInstance = NULL;
gb_thisInstance = hInstance;
// Initialize COM library
OleInitialize(NULL);
}
else if (dwReason == DLL_PROCESS_DETACH)
{
// Release COM library
OleUninitialize();
//Any registered HTTPProtocol + HTTPSProtocol
//will be unregistered once we are done here
if(gCtrlInstances.GetSize() > 0)
{
for(int i = 0; i < gCtrlInstances.GetSize(); i++)
gCtrlInstances[i] = NULL;
}
gCtrlInstances.RemoveAll();
gb_thisInstance = NULL;
}
hInstance;
return _AtlModule.DllMain(dwReason lpReserved);
}
#ifdef _MANAGED
#pragma managed(pop)
#endif
// Used to determine whether the DLL can be unloaded by OLE
STDAPI DllCanUnloadNow(void)
{
return _AtlModule.DllCanUnloadNow();
}
// Returns a class factory to create an object of the requested type
STDAPI DllGetClassobject(REFCLSID rclsid REFIID riid LPVOID* ppv)
{
return _AtlModule.DllGetClassobject(rclsid riid ppv);
}
// DllRegisterServer - Adds entries to the system registry
STDAPI DllRegisterServer(void)
{
// registers object typelib and all interfaces in typelib
HRESULT hr = _AtlModule.DllRegisterServer();
return hr;
}
// DllUnregisterServer - Removes entries from the system registry
STDAPI DllUnregisterServer(void)
{
HRESULT hr = _AtlModule.DllUnregisterServer();
return hr;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 905216 2008-07-21 13:55 csExWBv2.0.0.2\ComUtilities\Binaries\Debug\ComUtilities.dll
文件 192512 2008-07-21 13:54 csExWBv2.0.0.2\ComUtilities\Binaries\Release\ComUtilities.dll
文件 7176 2007-12-07 14:36 csExWBv2.0.0.2\ComUtilities\ComUtilities\ComUtilities.aps
文件 2361 2008-05-19 19:11 csExWBv2.0.0.2\ComUtilities\ComUtilities\ComUtilities.cpp
文件 213 2007-09-10 16:33 csExWBv2.0.0.2\ComUtilities\ComUtilities\ComUtilities.def
文件 80113 2008-07-21 13:56 csExWBv2.0.0.2\ComUtilities\ComUtilities\ComUtilities.h
文件 19642 2008-07-21 09:46 csExWBv2.0.0.2\ComUtilities\ComUtilities\ComUtilities.idl
文件 3066 2007-12-07 14:36 csExWBv2.0.0.2\ComUtilities\ComUtilities\ComUtilities.rc
文件 129 2007-09-10 16:33 csExWBv2.0.0.2\ComUtilities\ComUtilities\ComUtilities.rgs
文件 8159 2008-05-19 19:08 csExWBv2.0.0.2\ComUtilities\ComUtilities\ComUtilities.vcproj
文件 1407 2008-05-04 19:08 csExWBv2.0.0.2\ComUtilities\ComUtilities\ComUtilities.vcproj.MIKE-71A60E4629.Mike.user
文件 1407 2008-07-21 13:57 csExWBv2.0.0.2\ComUtilities\ComUtilities\ComUtilities.vcproj.MIKE-95C6BE4272.Mike.user
文件 206 2007-09-10 16:33 csExWBv2.0.0.2\ComUtilities\ComUtilities\ComUtilitiesps.def
文件 4132 2007-09-10 16:33 csExWBv2.0.0.2\ComUtilities\ComUtilities\ComUtilitiesPS.vcproj
文件 1407 2008-05-04 19:08 csExWBv2.0.0.2\ComUtilities\ComUtilities\ComUtilitiesPS.vcproj.MIKE-71A60E4629.Mike.user
文件 1407 2008-07-21 13:57 csExWBv2.0.0.2\ComUtilities\ComUtilities\ComUtilitiesPS.vcproj.MIKE-95C6BE4272.Mike.user
文件 3090 2008-07-21 13:56 csExWBv2.0.0.2\ComUtilities\ComUtilities\ComUtilities_i.c
文件 82966 2008-07-21 13:56 csExWBv2.0.0.2\ComUtilities\ComUtilities\ComUtilities_p.c
文件 329 2008-05-19 19:08 csExWBv2.0.0.2\ComUtilities\ComUtilities\CriticalSectionWrapper.h
文件 5023 2008-01-06 18:11 csExWBv2.0.0.2\ComUtilities\ComUtilities\CustManageApp.cpp
文件 5406 2007-12-07 21:51 csExWBv2.0.0.2\ComUtilities\ComUtilities\CustManageApp.h
文件 720 2007-12-07 14:35 csExWBv2.0.0.2\ComUtilities\ComUtilities\CustManageApp.rgs
文件 845 2008-07-21 13:56 csExWBv2.0.0.2\ComUtilities\ComUtilities\dlldata.c
文件 40645 2008-07-21 13:52 csExWBv2.0.0.2\ComUtilities\ComUtilities\ManagedAppBridge.cpp
文件 18646 2008-07-21 13:53 csExWBv2.0.0.2\ComUtilities\ComUtilities\ManagedAppBridge.h
文件 744 2007-11-26 05:28 csExWBv2.0.0.2\ComUtilities\ComUtilities\ManagedAppBridge.rgs
文件 670 2003-06-22 21:08 csExWBv2.0.0.2\ComUtilities\ComUtilities\Passthroughob
文件 2392 2004-02-07 17:45 csExWBv2.0.0.2\ComUtilities\ComUtilities\ProtocolCF.h
文件 5476 2007-11-01 20:20 csExWBv2.0.0.2\ComUtilities\ComUtilities\ProtocolCF.inl
文件 12037 2008-02-17 16:46 csExWBv2.0.0.2\ComUtilities\ComUtilities\ProtocolImpl.h
文件 19715 2008-02-18 14:19 csExWBv2.0.0.2\ComUtilities\ComUtilities\ProtocolImpl.inl
............此处省略345个文件信息
相关资源
- wpf 图片和视频浏览器
- CefSharp 49.0.0.1 C#中的Google浏览器控件
- webkit.net 0.5版c#和winform嵌入chrome核心浏
- C#基于Gecko 52自用浏览器,chrome风格选
- 9款c#浏览器源码及效果演示
- winform 嵌套chrome浏览器,.net开发谷歌
- GeckoFx 最新版本 完美支持HTML5 C# demo
- C#浏览器自动填表demo(三种方式)
- WinForm GeckoFx33 Demo JS与C#互交 窗口浏览
- C#winfrom图片查看浏览器
- Winform运用CefSharp简单样例
- C#北大刷课工具
- 基于WPF的USB设备浏览器
- WinForm简单IE浏览器 1.0.zip
- C# Winform 嵌入Google浏览器 Chrome 与JS交
- 基于VS2008浏览器源代码
- 用Visual C#打造多页面网页浏览器
- C# TabControl 重绘高仿 360浏览器选项卡
- c#网页浏览器
- C#实现的WEB浏览器
- C#控制IE浏览器
- C# asp.net http HttpWebRequest模拟浏览器请
- 用c#写的web浏览器--网页嵌入
- HTML5+JQUERY文件上传,手机浏览器兼容
- c#百度关键词点击源码(外部浏览器操
- VB.net中应用CefSharp.WinForms库构建Chrom
- 一个基于ASP.NET+C#实现的网页图片Ima
- 抓取新浪微博好友动态(可参考读取
- 监控IE浏览器打开百度时跳转到自己网
- C# 隐藏IE浏览器的右键关联菜单
评论
共有 条评论