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.

44 lines
1.6 KiB

  1. // MDSPStorageGlobals.h : Declaration of the CMDSPStorageGlobals
  2. #ifndef __MDSPSTORAGEGLOBALS_H_
  3. #define __MDSPSTORAGEGLOBALS_H_
  4. #include "resource.h" // main symbols
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CMDSPStorageGlobals
  7. class ATL_NO_VTABLE CMDSPStorageGlobals :
  8. public CComObjectRootEx<CComSingleThreadModel>,
  9. public CComCoClass<CMDSPStorageGlobals, &CLSID_MDSPStorageGlobals>,
  10. public IMDSPStorageGlobals
  11. {
  12. public:
  13. CMDSPStorageGlobals()
  14. {
  15. m_pMDSPDevice=(IMDSPDevice *)NULL;
  16. m_wcsName[0] = L'\0';
  17. }
  18. ~CMDSPStorageGlobals();
  19. DECLARE_REGISTRY_RESOURCEID(IDR_MDSPSTORAGEGLOBALS)
  20. BEGIN_COM_MAP(CMDSPStorageGlobals)
  21. COM_INTERFACE_ENTRY(IMDSPStorageGlobals)
  22. END_COM_MAP()
  23. // IMDSPStorageGlobals
  24. public:
  25. WCHAR m_wcsName[MAX_PATH];
  26. IMDSPDevice *m_pMDSPDevice;
  27. STDMETHOD(GetTotalSize)(/*[out]*/ DWORD *pdwTotalSizeLow, /*[out]*/ DWORD *pdwTotalSizeHigh);
  28. STDMETHOD(GetRootStorage)(/*[out]*/ IMDSPStorage **ppRoot);
  29. STDMETHOD(GetDevice)(/*[out]*/ IMDSPDevice **ppDevice);
  30. STDMETHOD(Initialize)(/*[in]*/ UINT fuMode, /*[in]*/ IWMDMProgress *pProgress);
  31. STDMETHOD(GetStatus)(/*[out]*/ DWORD *pdwStatus);
  32. STDMETHOD(GetTotalBad)(/*[out]*/ DWORD *pdwBadLow, /*[out]*/ DWORD *pdwBadHigh);
  33. STDMETHOD(GetTotalFree)(/*[out]*/ DWORD *pdwFreeLow, /*[out]*/ DWORD *pdwFreeHigh);
  34. STDMETHOD(GetSerialNumber)(/*[out]*/ PWMDMID pSerialNum, /*[in, out]*/BYTE abMac[WMDM_MAC_LENGTH]);
  35. STDMETHOD(GetCapabilities)(/*[out]*/ DWORD *pdwCapabilities);
  36. };
  37. #endif //__MDSPSTORAGEGLOBALS_H_