InstAPI.GetInstRegPathByName(String, SQL_SVCS, StringBuilder, UInt32) Método

Definición

Recupera la ruta de acceso del Registro para una instancia SQL y servicio específicos por el nombre de instancia descriptivo dado.

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

Parámetros

instanceName
String

Valor String que representa el nombre de instancia.

product
SQL_SVCS

Servicio SQL.

registryPath
StringBuilder

Puntero a un búfer para recibir la ruta de acceso del Registro.

bufferSize
UInt32

Puntero a un valor DWORD para proporcionar la longitud del búfer. Devuelve la longitud requerida si el búfer proporcionado es demasiado pequeño.

Devoluciones

true, si la llamada se ejecutó correctamente; de lo contrario, false.

Se aplica a