RegisterVMMPlugin method of the Win32_SessionDirectoryVMMPlugin class

Registers a new VMM plug-in.

Syntax

uint32 RegisterVMMPlugin(
  [in] string  sName,
  [in] string  sProvider,
  [in] string  sServiceLocation,
  [in] string  sClassID,
  [in] sint32  Priority = ,
  [in] boolean Enabled = 
);

Parameters

sName [in]

The name of the plug-in.

sProvider [in]

The name of the plug-in provider.

sServiceLocation [in]

The service location that the plug-in should contact.

sClassID [in]

The class identifier of the plug-in.

Priority [in]

The priority of the plug-in. The higher the value, the higher the priority of the plug-in.

Enabled [in]

Indicates whether the plug-in is enabled or disabled. True if the plug-in is enabled or false otherwise.

Return value

Returns 0 on success, otherwise returns a WMI error code. Refer to Remote Desktop Services WMI Provider Error Codes for a list of these values.

Requirements

Requirement Value
Minimum supported client
None supported
Minimum supported server
Windows Server 2008 R2
Namespace
Root\CIMv2\TerminalServices
MOF
TssdWmi.mof
DLL
TssdWmi.dll

See also

Win32_SessionDirectoryVMMPlugin