www.pudn.com > cdaudioxsrc.zip > CDAudioX.idl


// CDAudioX.idl : IDL source for CDAudioX.dll 
// 
 
// This file will be processed by the MIDL tool to 
// produce the type library (CDAudioX.tlb) and marshalling code. 
 
import "oaidl.idl"; 
import "ocidl.idl"; 
#include "olectl.h" 
	 
 
	[ 
		object, 
		uuid(55492B1E-183F-11D3-B908-00002140A1A4), 
		dual, 
		helpstring("ICDAudio Interface"), 
		pointer_default(unique) 
	] 
	interface ICDAudio : IDispatch 
	{ 
		[propput, id(DISPID_ENABLED)] 
		HRESULT Enabled([in]VARIANT_BOOL vbool); 
		[propget, id(DISPID_ENABLED)] 
		HRESULT Enabled([out,retval]VARIANT_BOOL* pbool); 
		[id(1), helpstring("method Open CD")] HRESULT Open(); 
		[id(2), helpstring("method Close")] HRESULT Close(); 
		[id(3), helpstring("method Play")] HRESULT Play(); 
		[id(4), helpstring("method Stop")] HRESULT Stop(); 
		[id(5), helpstring("method Pause")] HRESULT Pause(); 
		[id(6), helpstring("method OpenDrive")] HRESULT OpenDrive(); 
		[id(7), helpstring("method CloseDrive")] HRESULT CloseDrive(); 
		[propget, id(8), helpstring("property Playing")] HRESULT Playing([out, retval] BOOL *pVal); 
		[propget, id(9), helpstring("property TotalTracks")] HRESULT TotalTracks([out, retval] long *pVal); 
		[propget, id(10), helpstring("property CurrentTrack")] HRESULT CurrentTrack([out, retval] long *pVal); 
		[propget, id(11), helpstring("property Minutes")] HRESULT Minutes([out, retval] long *pVal); 
		[propget, id(12), helpstring("property Seconds")] HRESULT Seconds([out, retval] long *pVal); 
		[propget, id(13), helpstring("property Frames")] HRESULT Frames([out, retval] long *pVal); 
		[id(14), helpstring("method GetTotalLength")] HRESULT GetTotalLength(long* pMinVal , long* pSecVal); 
		[id(15), helpstring("method GetTrackLength")] HRESULT GetTrackLength(long Track, long* pMin, long* pSec ); 
		[id(16), helpstring("method SkipBack")] HRESULT SkipBack(long seconds); 
		[id(17), helpstring("method SkipForward")] HRESULT SkipForward(long Seconds); 
		[id(18), helpstring("method SeekTo")] HRESULT SeekTo(long track , long minutes , long seconds, long frame); 
		//[propput, id(8), helpstring("property Playing")] HRESULT Playing([in] BOOL newVal); 
	}; 
 
[ 
	uuid(55492B11-183F-11D3-B908-00002140A1A4), 
	version(1.0), 
	helpstring("CDAudioX 1.0 Type Library") 
] 
library CDAUDIOXLib 
{ 
	importlib("stdole32.tlb"); 
	importlib("stdole2.tlb"); 
 
	[ 
		uuid(55492B20-183F-11D3-B908-00002140A1A4), 
		helpstring("_ICDAudioEvents Interface") 
	] 
	dispinterface _ICDAudioEvents 
	{ 
		properties: 
		methods: 
	}; 
 
	[ 
		uuid(55492B1F-183F-11D3-B908-00002140A1A4), 
		helpstring("CDAudio Class") 
	] 
	coclass CDAudio 
	{ 
		[default] interface ICDAudio; 
		[default, source] dispinterface _ICDAudioEvents; 
	}; 
};