• 大小: 1.11MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-27
  • 语言: C#
  • 标签: 浏览器  

资源简介

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\Passthroughobject.h
     文件        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个文件信息

评论

共有 条评论