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.

49 lines
1.5 KiB

  1. // StorageGlobal.h : Declaration of the CStorageGlobal
  2. #ifndef __STORAGEGLOBAL_H_
  3. #define __STORAGEGLOBAL_H_
  4. #include "resource.h" // main symbols
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CStorageGlobal
  7. class ATL_NO_VTABLE CWMDMStorageGlobal :
  8. public CComObjectRootEx<CComMultiThreadModel>,
  9. public CComCoClass<CWMDMStorageGlobal, &CLSID_WMDMStorageGlobal>,
  10. public IWMDMStorageGlobals
  11. {
  12. public:
  13. CWMDMStorageGlobal() : m_pStgGlobals(NULL)
  14. {
  15. }
  16. ~CWMDMStorageGlobal()
  17. {
  18. if (m_pStgGlobals)
  19. m_pStgGlobals->Release();
  20. }
  21. BEGIN_COM_MAP(CWMDMStorageGlobal)
  22. COM_INTERFACE_ENTRY(IWMDMStorageGlobals)
  23. END_COM_MAP()
  24. public:
  25. // IWMDMStorageGlobals
  26. STDMETHOD(GetCapabilities)(DWORD *pdwCapabilities);
  27. STDMETHOD(GetSerialNumber)(PWMDMID pSerialNum, BYTE abMac[WMDM_MAC_LENGTH]);
  28. STDMETHOD(GetTotalSize)(DWORD *pdwTotalSizeLow,
  29. DWORD *pdwTotalSizeHigh);
  30. STDMETHOD(GetTotalFree)(DWORD *pdwFreeLow,
  31. DWORD *pdwFreeHigh);
  32. STDMETHOD(GetTotalBad)(DWORD *pdwBadLow,
  33. DWORD *pdwBadHigh);
  34. STDMETHOD(GetStatus)(DWORD *pdwStatus);
  35. STDMETHOD(Initialize)(UINT fuMode,
  36. IWMDMProgress *pProgress);
  37. void SetContainedPointer(IMDSPStorageGlobals *pStgGlobals, WORD wSPIndex);
  38. private:
  39. IMDSPStorageGlobals *m_pStgGlobals;
  40. WORD m_wSPIndex;
  41. };
  42. #endif //__STORAGEGLOBAL_H_