IVsProjectServerHost::StartServer Method (String^, UInt32)

 

Creates a process for a hosted server.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)

int StartServer(
	String^ bstrEnvironment,
	[OutAttribute] unsigned int% pdwProcessId
)

Parameters

bstrEnvironment
Type: System::String^

Environment in which to start the server. If not specified, the default environment is used.

pdwProcessId
Type: System::UInt32

The ID of the new process.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

If the server is already running then this method has no effect.

The bstrEnvironment parameter contains a list of NULL-terminated strings terminated by a double NULL {\0\0}. Appropriate methods (such as using ) must be used when copying this BSTR.f98bff39-bc5f-4a81-85d7-d5228e20fbc8

From vsshell90.idl:

HRESULT StartServer(
    [in, ptr] BSTR bstrEnvironment, 
    [out, retval] DWORD * pdwProcessId
);
Return to top
Show: