语言

InstAPI.GetInstancePipeByName(String, StringBuilder, UInt32) 方法

定义

通过给定的友好名称获取实例的命名管道路径。

public:
 static bool GetInstancePipeByName(System::String ^ instanceName, System::Text::StringBuilder ^ instancePipe, System::UInt32 % bufferSize);
public static bool GetInstancePipeByName(string instanceName, System.Text.StringBuilder instancePipe, ref uint bufferSize);
static member GetInstancePipeByName : string * System.Text.StringBuilder * uint32 -> bool
Public Shared Function GetInstancePipeByName (instanceName As String, instancePipe As StringBuilder, ByRef bufferSize As UInteger) As Boolean

参数

instanceName
String

一个 String 代表实例名称的值。

instancePipe
StringBuilder

一个指向缓冲区的指针,用于接收管道路径。

bufferSize
UInt32

一个指向DWORD值的指针,用于提供缓冲区的长度。 如果缓冲区太小,则返回所需长度。

返回

true如果叫牌成功;否则,。 false

适用于