IObjectSafety Interface
IObjectSafety Interface

Provides methods to get and set safety options.

IObjectSafety Members

GetInterfaceSafetyOptions Gets the safety options supported by an object and the safety options that are currently set for that object.
SetInterfaceSafetyOptions Returns whether an object is safe for initialization or scripting, as specified.

Remarks

The IObjectSafety interface should be implemented by objects that have interfaces which support "untrusted" clients, such as scripts. It allows the owner of the object to specify which interfaces must be protected from "untrusted" use.

Examples of interfaces that might be protected in this way are: IID_IDispatch (safe for automating with untrusted automation client or script), IID_IPersist (safe for initializing with untrusted data), and IID_IActiveScript (safe for running untrusted scripts).

Interface Information

Stock Implementation None
Custom ImplementationYes
Inherits fromIUnknown
Header and IDL filesObjsafe.h, Objsafe.idl
Minimum availabilityInternet Explorer 4.0
Minimum operating systems Windows 95, Windows NT 4.0
© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View