InstAPI.GetSQLRootRegPath(StringBuilder, UInt32) 方法

定义

检索 SQL Server 的注册表根。

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

参数

registryPath
StringBuilder

指向缓冲区以接收注册表路径的指针。

bufferSize
UInt32

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

返回

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

适用于