DelegateGetInstRegPathByID 委托

定义

通过表示已安装的 SQL 组件的实例标识符获取注册表子树。

public delegate bool DelegateGetInstRegPathByID(INST_ID ^ pInstanceID, SQL_SVCS Service, StringBuilder ^ sRegPath, [Runtime::InteropServices::Out] System::UInt32 % pdwSize);
public delegate bool DelegateGetInstRegPathByID(INST_ID pInstanceID, SQL_SVCS Service, StringBuilder sRegPath, out uint pdwSize);
type DelegateGetInstRegPathByID = delegate of INST_ID * SQL_SVCS * StringBuilder * uint32 -> bool
Public Delegate Function DelegateGetInstRegPathByID(pInstanceID As INST_ID, Service As SQL_SVCS, sRegPath As StringBuilder, ByRef pdwSize As UInteger) As Boolean 

参数

pInstanceID
INST_ID

一个指向相关实例的实例 ID 的指针。

Service
SQL_SVCS

SQL 服务。

sRegPath
StringBuilder

一个指向用于接收注册表路径的缓冲区的指针。

pdwSize
UInt32

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

返回值

true 如果它表示已安装的 SQL 组件,则为 ;;否则为 false

适用于