AddProgram method of the Win32_TSVirtualIP class

Adds a program to the list of programs that use IP virtualization.

Syntax

uint32 AddProgram(
  [in] string ProgramPath
);

Parameters

ProgramPath [in]

Type: string

The path and file name of the program to add to the list.

Return value

Type: uint32

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. The method returns an error if the setting is under group policy control.

Requirements

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

See also

Win32_TSVirtualIP