Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
984 B

#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