InstAPI.GetInstancePipeByName(String, StringBuilder, UInt32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
以所給友名稱取得實例的命名管路路徑。
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
參數
- instancePipe
- StringBuilder
一個指向緩衝區的指標,用來接收管路路徑。
- bufferSize
- UInt32
一個指向 DWORD 值的指標,用以提供緩衝區的長度。 若緩衝區太小,則回傳所需長度。
傳回
true若呼叫成功;否則,。 false