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.

63 lines
1.1 KiB

  1. #ifndef _SYSTEM_HXX
  2. #define _SYSTEM_HXX
  3. #define MAX_DN 1024
  4. class CWinNTSystemInfo;
  5. class CWinNTSystemInfo : INHERIT_TRACKING,
  6. public ISupportErrorInfo,
  7. public IADsWinNTSystemInfo
  8. {
  9. public:
  10. /* IUnknown methods */
  11. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) ;
  12. DECLARE_STD_REFCOUNTING
  13. DECLARE_IDispatch_METHODS
  14. DECLARE_ISupportErrorInfo_METHODS
  15. DECLARE_IADsWinNTSystemInfo_METHODS
  16. CWinNTSystemInfo::CWinNTSystemInfo();
  17. CWinNTSystemInfo::~CWinNTSystemInfo();
  18. static
  19. HRESULT
  20. CWinNTSystemInfo::CreateWinNTSystemInfo(
  21. REFIID riid,
  22. void **ppvObj
  23. );
  24. static
  25. HRESULT
  26. CWinNTSystemInfo::AllocateWinNTSystemInfoObject(
  27. CWinNTSystemInfo ** ppWinNTSystemInfo
  28. );
  29. protected:
  30. CAggregatorDispMgr FAR * _pDispMgr;
  31. };
  32. //
  33. // Class factory
  34. //
  35. class CWinNTSystemInfoCF : public StdClassFactory
  36. {
  37. public:
  38. STDMETHOD(CreateInstance)(IUnknown * pUnkOuter, REFIID iid, LPVOID * ppv);
  39. };
  40. #endif // ifndef _SYSTEM_HXX