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

📄 installpassthru.h

📁 NDIS IMD中间层驱动自动安装程序
💻 H
字号:
// InstallPassthru.h: interface for the CInstallPassthru class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_INSTALLPASSTHRU_H__89D26F32_031D_4A37_9950_4F9D953001EE__INCLUDED_)
#define AFX_INSTALLPASSTHRU_H__89D26F32_031D_4A37_9950_4F9D953001EE__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CInstallPassthru  
{
public:
	HWND m_hwnd;
	TCHAR m_processName[_MAX_FNAME];
	BOOL m_IsSetup;
public:
	CInstallPassthru();
	CInstallPassthru(HWND hWnd);
	virtual ~CInstallPassthru();
	void ShowError(TCHAR * errMsg);
	void SethWnd(HWND hWnd);
	void InstallPassthru();
	void UninstallPassthru();


	HRESULT GetKeyValue (HINF hInf,LPTSTR lpszSection,
		LPTSTR lpszKey,DWORD  dwIndex,LPTSTR *lppszValue);

	HRESULT GetPnpID(LPTSTR lpszInfFile,LPTSTR *lppszPnpID);
			
	HRESULT HrGetINetCfg (IN BOOL fGetWriteLock,
		IN LPTSTR lpszAppName,
		OUT INetCfg** ppnc,
		LPTSTR *lpszLockedBy);
	
	HRESULT HrReleaseINetCfg (INetCfg* pnc,
		BOOL fHasWriteLock);
	
	HRESULT HrInstallNetComponent (IN INetCfg *pnc,
		IN LPTSTR szComponentId,
		IN const GUID    *pguildClass,
		IN LPTSTR lpszInfFullPath);
	
	HRESULT HrInstallComponent(IN INetCfg* pnc,
		IN LPTSTR szComponentId,
		IN const GUID* pguidClass);
	
	HRESULT HrUninstallNetComponent(IN INetCfg* pnc,
		IN LPTSTR szComponentId);
	
	HRESULT HrGetComponentEnum (INetCfg* pnc,
		IN const GUID* pguidClass,
		IEnumNetCfgComponent **ppencc);
	
	HRESULT HrGetFirstComponent (IEnumNetCfgComponent* pencc,
		INetCfgComponent **ppncc);
	
	HRESULT HrGetNextComponent (IEnumNetCfgComponent* pencc,
		INetCfgComponent **ppncc);
	
	HRESULT HrFindNetComponentByPnpId (IN INetCfg *pnc,
		IN LPTSTR lpszPnpDevNodeId,
		OUT INetCfgComponent **ppncc);
	
	HRESULT HrGetBindingPathEnum (INetCfgComponent *pncc,
		DWORD dwBindingType,
		IEnumNetCfgBindingPath **ppencbp);
	
	HRESULT HrGetFirstBindingPath (IEnumNetCfgBindingPath *pencbp,
		INetCfgBindingPath **ppncbp);
	
	HRESULT HrGetNextBindingPath (IEnumNetCfgBindingPath *pencbp,
		INetCfgBindingPath **ppncbp);
	
	HRESULT HrGetBindingInterfaceEnum (INetCfgBindingPath *pncbp,
		IEnumNetCfgBindingInterface **ppencbi);
	
	HRESULT HrGetFirstBindingInterface (IEnumNetCfgBindingInterface *pencbi,
		INetCfgBindingInterface **ppncbi);
	
	HRESULT HrGetNextBindingInterface (IEnumNetCfgBindingInterface *pencbi,
		INetCfgBindingInterface **ppncbi);
	
VOID ReleaseRef (IUnknown* punk);
};

#endif // !defined(AFX_INSTALLPASSTHRU_H__89D26F32_031D_4A37_9950_4F9D953001EE__INCLUDED_)

⌨️ 快捷键说明

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