# MTSystemContext

This interface aggregates interfaces to several interfaces used by plug-ins.

## Program ID

MetraPipeline.MTSystemContext.1

## MTSystemContext Methods

Decrypt | Decrypts a string encrypted by the MetraTech Listener.
GetEnumConfig | Returns the enumeration object (used to lookup enumerated type values).
GetLog | Returns the logger interface.
GetNameID | Returns the name ID object.

## MTSystemContext Properties

EffectiveConfig | Returns the name ID object.
ExtensionName | Gets the Platform Extension name
StageDirectory | Gets the path to the MetraTech directory containing the stage files.

## Example

Example to be provided in a future release of this online help system.

# Method Detail

## Decrypt

Decrypts a string encrypted by the MetraTech Listener.

### Visual Basic Syntax

Function Decrypt(aEncryptedStr As String) As String

### C++ Syntax

HRESULT DecryptEncryptedProp([in] long aPropID,[out, retval] BSTR* aStringProp);

### Arguments

aEncryptedStr

The encrypted string

### Return Value

Returns the string in the clear (not encrypted).

## GetLog

Returns the logger interface.

### Visual Basic Syntax

Function GetLog() As MTLog

### C++ Syntax

HRESULT GetLog([out, retval] IMTLog * * log)

## GetNameID

Returns the name ID object.

### Visual Basic Syntax

Function GetNameID() As IMTNameID

### C++ Syntax

HRESULT GetNameID([out, retval] IMTNameID * * nameid);

## GetEnumConfig

Returns the enumeration object (used to lookup enumerated type values).

### Visual Basic Syntax

Function GetEnumConfig() as IEnumConfig

### C++ Syntax

HRESULT GetEnumConfig([out, retval] IEnumConfig * * enum_config);

# Property Detail

## EffectiveConfig

Returns the name ID object.

This is a read-only property.

### Visual Basic Syntax

Property EffectiveConfig As IMTConfigFile

### C++ Syntax

HRESULT EffectiveConfig([out, retval] IMTConfigFile ** pEffectiveConfig);

### Return Value

Enumeration object.

## ExtensionName

Retrieves the name of the Platform Extension for the pipeline stage.

This is a read-only property.

### Visual Basic Syntax

Property ExtensionName As String

### C++ Syntax

HRESULT ExtensionName([out, retval] BSTR* pExtensionName);

### Return Value

The name of the pipeline stage running when ExtensionName is called.

## StageDirectory

Retrieves the path to the MetraTech directory containing the stage files.

This is a read-only property.

### Visual Basic Syntax

Property StageDirectory As String

### C++ Syntax

HRESULT StageDirectory([out, retval] BSTR* pStageDir);

### Return Value

The path name of the stage directory as a string.