| 12345678910111213141516171819202122232425262728293031 |
- #ifndef __DISC_MASTER_20151220__
- #define __DISC_MASTER_20151220__
- ///////////////////////////////////////////////////////////////////////
- // DiscMaster.h
- //
- // 封装IDiscMaster2接口;
- //
- // 枚举计算机上所有光学设备;用来判断计算机是否连接着CD或DVD驱动器;
- #pragma once
- class CDiscMaster
- {
- private:
- IDiscMaster2* m_discMaster;
- HRESULT m_hResult;
- CString m_errorMessage;
- public:
- CDiscMaster(void);
- ~CDiscMaster(void);
- inline HRESULT GetHresult() {return m_hResult;}
- inline CString GetErrorMessage() {return m_errorMessage;}
- bool Initialize();
- long GetTotalDevices();
- CString GetDeviceUniqueID(long index);
- };
- #endif
|