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.

34 lines
604 B

  1. // File: syspol.h
  2. #ifndef _SYSPOL_H_
  3. #define _SYSPOL_H_
  4. class SysPol
  5. {
  6. protected:
  7. static HKEY m_hkey;
  8. SysPol() {ASSERT(FALSE);}; // This isn't a normal class
  9. ~SysPol() {};
  10. private:
  11. static bool FEnsureKeyOpen(void);
  12. static DWORD GetNumber(LPCTSTR pszName, DWORD dwDefault = 0);
  13. public:
  14. static void CloseKey(void);
  15. static bool AllowDirectoryServices(void);
  16. static bool AllowAddingServers(void);
  17. static bool NoAudio(void);
  18. static bool NoVideoSend(void);
  19. static bool NoVideoReceive(void);
  20. static UINT GetMaximumBandwidth(); // returns 0 if no policy key
  21. };
  22. #endif /* _SYSPOL_H_ */