Partager via


CLSCTX Enum

Definition

Represents the class context. Used to determine what scope and type of class object to use.

public enum class CLSCTX
public enum class CLSCTX
enum CLSCTX
public enum CLSCTX
type CLSCTX = 
Public Enum CLSCTX
Inheritance
CLSCTX

Fields

Name Value Description
CLSCTX_INPROC_SERVER 1

The code that creates and manages objects of this class is a DLL that runs in the same process as the caller of the function specifying the class context.

CLSCTX_INPROC_HANDLER 2

Indicates a handler dll, which runs on the same process as the caller.

CLSCTX_LOCAL_SERVER 4

Indicates a server executable, which runs on the same machine but on a different process than the caller.

CLSCTX_INPROC_SERVER16 8

Obsolete.

CLSCTX_REMOTE_SERVER 16

Indicates a server executable, which runs on a different machine than the caller.

CLSCTX_INPROC_HANDLER16 32

Indicates a 16-bit handler dll, which runs on the same process as the caller.

CLSCTX_RESERVED1 64

Reserved. Formerly INPROC_SERVERX86.

CLSCTX_RESERVED2 128

Reserved. Formerly INPROC_HANDLERX86.

CLSCTX_RESERVED3 256

Reserved. Formerly ESERV_HANDLER.

CLSCTX_RESERVED4 512

Reserved.

CLSCTX_NO_CODE_DOWNLOAD 1024

Indicates that code should not be allowed to be downloaded from the Directory Service (if any) or the Internet.

CLSCTX_RESERVED5 2048

Reserved. Formerly NO_WX86_TRANSLATION.

CLSCTX_NO_CUSTOM_MARSHAL 4096
CLSCTX_ENABLE_CODE_DOWNLOAD 8192

Indicates that code should be allowed to be downloaded from the Directory Service (if any) or the Internet.

CLSCTX_NO_FAILURE_LOG 16384

Indicates that no log messages about activation failure should be written to the Event Log.

CLSCTX_DISABLE_AAA 32768

Indicates that activate-as-activator capability is disabled for this activation only.

CLSCTX_ENABLE_AAA 65536

Indicates that activate-as-activator capability is enabled for this activation only.

CLSCTX_FROM_DEFAULT_CONTEXT 131072

Indicates that activation should begin from the default context of the current apartment.

Applies to