IHostEx.GetSecuredClassFactory Method

Definition

Creates a secure class factory for a type in the specified assembly.

public:
 Microsoft::IE::ISecureFactory ^ GetSecuredClassFactory(int dwIdentityFlags, int dwZone, System::String ^ lpSite, System::String ^ pbSecurityId, System::String ^ lpHash, System::String ^ className, System::String ^ fileName);
public Microsoft.IE.ISecureFactory GetSecuredClassFactory (int dwIdentityFlags, int dwZone, string lpSite, string pbSecurityId, string lpHash, string className, string fileName);
abstract member GetSecuredClassFactory : int * int * string * string * string * string * string -> Microsoft.IE.ISecureFactory
Public Function GetSecuredClassFactory (dwIdentityFlags As Integer, dwZone As Integer, lpSite As String, pbSecurityId As String, lpHash As String, className As String, fileName As String) As ISecureFactory

Parameters

dwIdentityFlags
Int32

One of the following CORIESECURITY values:

  • CORIESECURITY_ZONE: 0x01

  • CORIESECURITY_SITE: 0x02

dwZone
Int32

One of the following URLZONE values:

  • URLZONE_LOCAL_MACHINE: 0x00

  • URLZONE_INTRANET: 0x01

  • URLZONE_TRUSTED: 0x02

  • URLZONE_INTERNET: 0x03

  • URLZONE_UNTRUSTED: 0x04

lpSite
String

The site address.

pbSecurityId
String

A unique ID for the site.

lpHash
String

The hexadecimal encoded hash value of the assembly that is being loaded.

className
String

The name of the type.

fileName
String

The name of the assembly.

Returns

An object that represents the secure class factory.

Applies to