Team Fortress 2 Source Code as on 22/4/2020
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.

28 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Utilities for setting vproject settings
  4. //
  5. //===========================================================================//
  6. #ifndef _VCONFIG_H
  7. #define _VCONFIG_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. // The registry keys that vconfig uses to store the current vproject directory.
  12. //#define VPROJECT_REG_KEY "SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment"
  13. // Moved to simply 'Environment' - we need to set in HKEY_CURRENT_USER and not local machine, to avoid security issues in vista!
  14. #define VPROJECT_REG_KEY "Environment"
  15. // For accessing the environment variables we store the current vproject in.
  16. void SetVConfigRegistrySetting( const char *pName, const char *pValue, bool bNotify = true );
  17. bool GetVConfigRegistrySetting( const char *pName, char *pReturn, int size );
  18. #ifdef _WIN32
  19. bool RemoveObsoleteVConfigRegistrySetting( const char *pValueName, char *pOldValue = NULL , int size = 0 );
  20. #endif
  21. bool ConvertObsoleteVConfigRegistrySetting( const char *pValueName );
  22. #endif // _VCONFIG_H