⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gjenumnet.cpp

📁 枚举主机网络设备
💻 CPP
字号:
// GJEnumNet.cpp : Defines the initialization routines for the DLL.
//

#include "stdafx.h"
#include <afxdllx.h>

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif


HINSTANCE g_hInsGJEnumNetDLL=NULL;
static AFX_EXTENSION_MODULE GJEnumNetDLL = { NULL, NULL };

extern "C" int APIENTRY
DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
{
	// Remove this if you use lpReserved
	UNREFERENCED_PARAMETER(lpReserved);

	if (dwReason == DLL_PROCESS_ATTACH)
	{
		TRACE0("GJENUMNET.DLL Initializing!\n");
		
		g_hInsGJEnumNetDLL=hInstance;
		// Extension DLL one-time initialization
		if (!AfxInitExtensionModule(GJEnumNetDLL, hInstance))
			return 0;

		new CDynLinkLibrary(GJEnumNetDLL);
	}
	else if (dwReason == DLL_PROCESS_DETACH)
	{
		TRACE0("GJENUMNET.DLL Terminating!\n");
		// Terminate the library before destructors are called
		AfxTermExtensionModule(GJEnumNetDLL);
	}
	return 1;   // ok
}

#include "FVEnumNet.h"
CView* NewView(CView *pCurrentActiveView,char *szText,BOOL *pbChanged,DWORD dwRsv=0)
{
	*pbChanged=0;

    BOOL *pbHideOutput=NULL;
	if(NULL!=dwRsv)
		pbHideOutput=(BOOL *)dwRsv;
//	if(NULL!=pbHideOutput)
//		*pbHideOutput=0;

	CString str(szText);
	CString strDllFile=CHPublic::GetXBKrDllFileURL(str);
    if(!pCurrentActiveView->IsKindOf(RUNTIME_CLASS(CFVEnumNet))){
		*pbChanged=1;
        return new CFVEnumNet(strDllFile);
    }

	return pCurrentActiveView;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -