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

適用於