CDINFO.IDL
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:
Windows编程
开发平台:
Visual C++
- #include <olectl.h>
- // CDInfo.idl : IDL source for CDInfo.dll
- //
- // This file will be processed by the MIDL tool to
- // produce the type library (CDInfo.tlb) and marshalling code.
- [
- object,
- uuid(A393BE4F-2FBD-11D0-B939-000000000000),
- dual,
- helpstring("ICDInfo Interface"),
- pointer_default(unique)
- ]
- interface ICDInfo : IDispatch
- {
- import "oaidl.idl";
- import "ocidl.idl";
- [propget, id(0)] HRESULT Tracks([out, retval] short* pTracks);
- [propput, id(0)] HRESULT Tracks([in] short Tracks);
- [propget, id(1)] HRESULT Length([in] short Track, [out, retval] short* pLength);
- [propput, id(1)] HRESULT Length([in] short Track, [in] short nLength);
- [propget, id(2)] HRESULT TotalLength([out, retval] short* pLength);
- HRESULT Read([out, retval] short* pTracks);
- HRESULT Redraw();
- HRESULT Play([in] short Track);
- };
- [
- uuid(A393BE4C-2FBD-11D0-B939-000000000000),
- version(1.0),
- helpstring("CDInfo 1.0 Type Library")
- ]
- library CDINFOLib
- {
- importlib("stdole32.tlb");
- [
- uuid(3F85F440-3283-11d0-96A9-00A0C90DC94B),
- helpstring("Event interface for CDInfo Control")
- ]
- dispinterface CDEvents
- {
- properties:
- methods:
- [id(1)] void Click([in] short nTrack);
- };
- [
- uuid(A393BE4E-2FBD-11D0-B939-000000000000),
- helpstring("CDInfo Class")
- ]
- coclass CCDInfo
- {
- [default] interface ICDInfo;
- [default, source] dispinterface CDEvents;
- };
- };