首页 > 代码库 > C#开发activex

C#开发activex

参考———http://blog.csdn.net/sqqyq/article/details/8224355

注意———IObjectSafety接口的GUID是唯一的,

//Guid唯一,不可变更,否则将无法通过IE浏览器的ActiveX控件的安全认证    [ComImport, Guid("CB5BDC81-93C1-11CF-8F20-00805F2CD064")]    [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]    public interface IObjectSafety    {        [PreserveSig]        void GetInterfacceSafyOptions(        int riid,        out int pdwSupportedOptions,        out int pdwEnabledOptions);        [PreserveSig]        void SetInterfaceSafetyOptions(        int riid,        int dwOptionsSetMask,        int dwEnabledOptions);    }}

 

C#开发activex