'IObjectSafetyImpl' 模板类有两个模板参数:
template <class T, DWORD dwSupportedSafety>第一个是你的 ActiveX 组件,第二个是 safety 选项,有两个选择列出如下:dwSupportedSafetySpecifies the supported safety options for the control. Can be one of the following values: INTERFACESAFE_FOR_UNTRUSTED_CALLER   The interface identified by the SetInterfaceSafetyOptions parameter riid should be made safe for scripting.
INTERFACESAFE_FOR_UNTRUSTED_DATA   The interface identified by the SetInterfaceSafetyOptions parameter riid should be made safe for untrusted data during initialization.