Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Provides methods to get and set safety options.
The IObjectSafety interface inherits from the IUnknown interface. IObjectSafety also has these types of members:
- Methods
The IObjectSafety interface has these methods.
Method | Description |
---|---|
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. |
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).
Minimum supported client |
Windows XP |
Minimum supported server |
Windows 2000 Server |
Header |
Objsafe.h |
IDL |
Objsafe.idl |