ITTerminalManager2::GetPluggableTerminalClasses method (termmgr.h)

The GetPluggableTerminalClasses method lists the terminal classes for all pluggable terminals registered under a terminal superclass.

Syntax

HRESULT GetPluggableTerminalClasses(
  [in]      IID   iidSuperclass,
  [in]      DWORD dwMediaTypes,
  [in, out] DWORD *pdwNumClasses,
  [out]     IID   *pTerminalClasses
);

Parameters

[in] iidSuperclass

A BSTR that represents the CLSID for the parent superclass.

[in] dwMediaTypes

Bitwise ORed list of media types. The method returns only terminals that support these media types.

[in, out] pdwNumClasses

If the pTerminalClasses parameter is NULL, this parameter returns the total number of terminals registered under the terminal superclass specified by the iidSuperclass parameter.

If pTerminalClasses is not NULL, and the method completes successfully, this parameter returns a count of the number of terminal IIDs returned in the pTerminalClasses buffer.

[out] pTerminalClasses

Pointer to the buffer to receive the terminals IIDs. This parameter can also be NULL. For more information, see the description of the pdwNumClasses parameter.

Return value

This method can return one of these values.

Value Meaning
S_OK
Method succeeded.
E_INVALIDARG
The pTerminalClasses parameter doesn't represent an IID or list of IIDs.
E_FAIL
The method failed.
E_POINTER
The pTerminalClasses parameter is not a valid pointer.

Requirements

Requirement Value
Target Platform Windows
Header termmgr.h

See also

ITTerminalManager2