Source code of Windows XP (NT5)
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
948 B

  1. #ifndef _remote_h
  2. #define _remote_h
  3. //===============================================================================
  4. // Class: CEnvCache
  5. //
  6. // This class caches the system environment variables for remote systems. This
  7. // cache is used to expand environment variables in the context of a remote system.
  8. //
  9. // The values of the remote system environment variables are loaded from the
  10. // remote system's registry.
  11. //
  12. //==============================================================================
  13. class CEnvCache
  14. {
  15. public:
  16. CEnvCache();
  17. SCODE Lookup(LPCTSTR pszMachine, LPCTSTR pszName, CString& sResult);
  18. SCODE AddMachine(LPCTSTR pszMachine);
  19. private:
  20. CMapStringToOb m_mapMachine;
  21. SCODE GetEnvironmentVars(LPCTSTR pszMachine, CMapStringToString* pmapVars);
  22. };
  23. SCODE RemoteExpandEnvStrings(LPCTSTR pszComputerName, CEnvCache& cache, CString& sValue);
  24. SCODE MapPathToUNC(LPCTSTR pszMachineName, CString& sPath);
  25. #endif //_remote_h