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

📄 remote.h

📁 windows的snmp api源码
💻 H
字号:

#ifndef _remote_h
#define _remote_h

//===============================================================================
// Class: CEnvCache
//
// This class caches the system environment variables for remote systems.  This
// cache is used to expand environment variables in the context of a remote system.
// 
// The values of the remote system environment variables are loaded from the
// remote system's registry.
//
//==============================================================================
class CEnvCache
{
public:
	
	CEnvCache();
	SCODE Lookup(LPCTSTR pszMachine, LPCTSTR pszName, CString& sResult);
	SCODE AddMachine(LPCTSTR pszMachine);


private:
	CMapStringToOb m_mapMachine;
	SCODE GetEnvironmentVars(LPCTSTR pszMachine, CMapStringToString* pmapVars);

};

SCODE RemoteExpandEnvStrings(LPCTSTR pszComputerName, CEnvCache& cache, CString& sValue);
SCODE MapPathToUNC(LPCTSTR pszMachineName, CString& sPath);




#endif //_remote_h

⌨️ 快捷键说明

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