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.

31 lines
510 B

  1. // File: confqos.h
  2. #ifndef _CONFQOS_H_
  3. #define _CONFQOS_H_
  4. // Don't use more than 90% of the CPU among all the components
  5. // registered with the QoS module
  6. #define MSECS_PER_SEC 900
  7. struct IQoS;
  8. class CQoS
  9. {
  10. protected:
  11. IQoS * m_pIQoS;
  12. HRESULT SetClients(void);
  13. HRESULT SetResources(int nBandWidth);
  14. public:
  15. CQoS();
  16. ~CQoS();
  17. HRESULT Initialize();
  18. HRESULT SetBandwidth(UINT uBandwidth);
  19. ULONG GetCPULimit();
  20. };
  21. extern CQoS* g_pQoS;
  22. #endif // _CONFQOS_H_