ITsSbProvider::CreateEnvironmentObject method

Creates an ITsSbEnvironment environment object.

Syntax


HRESULT CreateEnvironmentObject(
  [in]  BSTR             Name,
  [in]  DWORD            ServerWeight,
  [out] ITsSbEnvironment **ppEnvironment
);

Parameters

Name [in]

A BSTR variable that contains the name of the object to create.

ServerWeight [in]

A DWORD variable that contains the server weight of the object to create.

ppEnvironment [out]

A pointer to a pointer to the newly created environment object. When you have finished using the object, release it by calling the Release method.

Return value

This method can return one of these values.

If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT value that indicates the error. Possible values include, but are not limited to, those in the following list.

E_INVALIDARG

The Name parameter that was passed in is NULL.

Remarks

Plug-ins can use this method to create an environment object.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2012

IDL

Sbtsv.idl

See also

ITsSbEnvironment
ITsSbProvider

 

 

Show: