Desktop Functions: Smart Device Functions:
|
Search Results for "IInternetSecurityManager" in [All]Interfacespublic interface IInternetSecurityManager This sample uses IInternetSecurityManager within an ActiveX control to determine the Zone from which the web page hosting the control is loaded. If the Zone is not My Computer, a flag is thrown indicating the zone is not safe. This is useful for cases where you want to mark a control as safe for scripting, but you want to limit the zones in which it is allowed to run or to perform certain actions, something IE security does not allow. Note that you will need to add shdocvw.dll as a reference within your project, and that you should set "Register for COM Interop" to True in Project Properties | Configuration Properties | Build.
public interface IInternetSecurityManager
IInternetSecurityManager ISM = securityManager as IInternetSecurityManager;
Public Interface IInternetSecurityManager If a control is marked safe for scripting, it's considered safe for scripting in all Internet security zones. See IInternetSecurityManager for more information. |