1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| import "oaidl.idl";
import "ocidl.idl";
import "unknwn.idl";
[ uuid(00000000-7B11-46c2-A8A7-BA5F91EF3801),
helpstring("_My Type Library"),
version(1.0) ]
library ComMyLib
{
importlib("stdole2.tlb");
importlib("System.Drawing.tlb");
interface _Bitmap;
[ odl,
uuid(00000000-7B11-46c2-A8A7-BA5F91EF3800),
oleautomation,
dual ]
interface IComMy : IDispatch
{
[id(1)] HRESULT open([in] BSTR filename );
[id(2)] HRESULT close();
[id(3),propget] HRESULT totalFrame([out, retval] DWORD *num);
[id(4),propget] HRESULT frameRate([out, retval] DWORD *fps);
[id(5),propget] HRESULT image([out, retval] Bitmap**ppImage);
};
[ uuid(00000000-7B11-46c2-A8A7-BA5F91EF3802) ]
coclass ComMy
{
[default] interface IComMy;
}
}; |
Partager