#if !defined(AFX_MCIMP3_H__31175A6D_4435_41BF_BB02_5D78903D7338__INCLUDED_)
#define AFX_MCIMP3_H__31175A6D_4435_41BF_BB02_5D78903D7338__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include <mmsystem.h>

class MCIMP3  
{
public:
	MCIMP3();
	virtual ~MCIMP3();
	DWORD MCIOpen(const CString &strPath);
	DWORD MCIClose();
	DWORD MCIPlay();
	DWORD MCIPause();
	DWORD MCIResume();
	DWORD MCIStop();
	DWORD MCISetMute(BOOL bMute);
	DWORD MCIGetLength(DWORD *dwReturn);
	DWORD MCIGetPos(DWORD *dwPos);
	DWORD MCISeekTo(DWORD dwTo);
	DWORD MCISeekToStart();
	DWORD MCISeekToEnd();
	BOOL MCIIsPlaying();
	BOOL MCIIsOpened();

	DWORD m_dwLength;

protected:
	//MCIÉè±¸ID
	MCIDEVICEID m_wID;
};

#endif // !defined(AFX_MCIMP3_H__31175A6D_4435_41BF_BB02_5D78903D7338__INCLUDED_)


