// $projectname$.idl : type library source for ActiveX Control project. // This file will be processed by the MIDL compiler tool to // produce the type library ($projectname$.tlb) that will become a resource in // $projectname$.ocx. #include #include [ uuid($guid_libid$), version(1.0), control ] library $safeprojectname$Lib { importlib(STDOLE_TLB); // Primary dispatch interface for $control_class$ [ uuid($guid_primary_iid$) ] dispinterface _D$safeprojectname$ { properties: [!if ASYNC_PROPERTY_LOAD] [id(DISPID_READYSTATE), readonly] long ReadyState; [!endif] methods: [!if ABOUT_BOX] [id(DISPID_ABOUTBOX)] void AboutBox(); [!endif] }; // Event dispatch interface for $control_class$ [ uuid($guid_event_iid$) ] dispinterface _D$safeprojectname$Events { properties: // Event interface has no properties methods: [!if ASYNC_PROPERTY_LOAD] [id(DISPID_READYSTATECHANGE)] void ReadyStateChange(); [!endif] }; // Class information for $control_class$ [ [!if RUNTIME_LICENSE] uuid($guid_control_clsid$), licensed [!else] uuid($guid_control_clsid$) [!endif] ] coclass $safeprojectname$ { [default] dispinterface _D$safeprojectname$; [default, source] dispinterface _D$safeprojectname$Events; }; };