2.2.2.29 CONNECT_RUNSPACEPOOL Message

The Data field of a PSRP message specifies a CONNECT_RUNSPACEPOOL message when the MessageType field has a value of 0x00010008. This message is not supported for protocol versions 2.0 and 2.1.

In messages of this type, the Data field contains UTF-8 encoded XML created by serializing a Complex Object (see section 2.2.5.2) with the following optional extended properties (see section 2.2.5.2.9):

  • Minimum number of runspaces in the RunspacePool

    • Property name: MinRunspaces

    • Property type: Signed int (see section 2.2.5.1.11)

  • Maximum number of runspaces in the RunspacePool

    • Property name: MaxRunspaces

    • Property type: Signed int (see section 2.2.5.1.11)

  • Default Runspace pool containing a single Runspace

    • Empty string field is the same as MinRunspaces and MaxRunspaces properties set to the value of 1.

The following example specifies a Runspace pool with up to five Runspaces.

 <Obj RefId="1">
   <MS>
     <I32 N="MinRunspaces">1</I32>
     <I32 N="MaxRunspaces">5</I32>
   </MS>
 </Obj>

The following example specifies a default Runspace pool with a single Runspace.

 <Obj RefId="1">
   <MS>
     <S></S>
   </MS>
 </Obj>