
Building Safe ActiveX Internet Controls • Chapter 9 391
allows a control to report to the calling application (also known as the
Container Object) whether it is safe or not.The major advantage of
using IObjectSafety is that you can have a single version of your control
that performs safe under certain circumstances and unsafe under others.
It can programmatically change safety modes to conform to a variety of
situations. Unlike the other method of marking a control as safe, it does
not have to depend on registry entries. From a security standpoint, the
best reason to use IObjectSafety is that someone else cannot come along
behind you, repackage your ...