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.

77 lines
1.9 KiB

  1. //
  2. // Microsoft Windows Media Technologies
  3. // Copyright (C) Microsoft Corporation, 1999 - 2001. All rights reserved.
  4. //
  5. //
  6. // This workspace contains two projects -
  7. // 1. ProgHelp which implements the Progress Interface
  8. // 2. The Sample application WmdmApp.
  9. //
  10. // ProgHelp.dll needs to be registered first for the SampleApp to run.
  11. //
  12. // ItemData.h: Interface for the CItemData class.
  13. //
  14. #if !defined(AFX_ITEMDATA_H__1C17A70D_4382_11D3_B269_00C04F8EC221__INCLUDED_)
  15. #define AFX_ITEMDATA_H__1C17A70D_4382_11D3_B269_00C04F8EC221__INCLUDED_
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif // _MSC_VER > 1000
  19. class CItemData
  20. {
  21. public:
  22. // Flag indicating a device or storage item
  23. //
  24. BOOL m_fIsDevice;
  25. // Shared device/storage members
  26. //
  27. IWMDMStorageGlobals *m_pStorageGlobals;
  28. IWMDMEnumStorage *m_pEnumStorage;
  29. CHAR m_szName[MAX_PATH];
  30. // Device-only members
  31. //
  32. IWMDMDevice *m_pDevice;
  33. IWMDMStorage *m_pRootStorage;
  34. DWORD m_dwType;
  35. WMDMID m_SerialNumber;
  36. CHAR m_szMfr[MAX_PATH];
  37. DWORD m_dwVersion;
  38. DWORD m_dwPowerSource;
  39. DWORD m_dwPercentRemaining;
  40. HICON m_hIcon;
  41. DWORD m_dwMemSizeKB;
  42. DWORD m_dwMemBadKB;
  43. DWORD m_dwMemFreeKB;
  44. BOOL m_fExtraCertified;
  45. // Storage-only members
  46. //
  47. IWMDMStorage *m_pStorage;
  48. DWORD m_dwAttributes;
  49. _WAVEFORMATEX m_Format;
  50. WMDMDATETIME m_DateTime;
  51. DWORD m_dwSizeLow;
  52. DWORD m_dwSizeHigh;
  53. // Methods
  54. //
  55. CItemData();
  56. virtual ~CItemData();
  57. HRESULT Init( IWMDMDevice *pDevice );
  58. HRESULT Init( IWMDMStorage *pStorage );
  59. HRESULT Refresh( void );
  60. };
  61. #endif // !defined(AFX_ITEMDATA_H__1C17A70D_4382_11D3_B269_00C04F8EC221__INCLUDED_)