DllSurrogateExecutable

允许 DLL 服务器与 DllSurrogate 注册表值一起在自定义代理项进程中运行。 如果未指定 DllSurrogateExecutable,COM 会将 NULL 作为 CreateProcess 函数的第一个参数的值传递。

注册表项

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AppID
   {AppID_GUID}
      DllSurrogateExecutable = file

注解

此值的类型为 REG_SZ。 它可与 DllSurrogate 值结合使用,以防止在使用 CreateProcess 函数时出现任何歧义。 DllSurrogate 指示是否需要使用自定义代理项,并将此信息作为 CreateProcess 的第一个参数传递。 根据 CreateProcess 的实现,此信息可能不明确。 如果指定了 DllSurrogateExecutable,COM 会将该值作为 CreateProcess 的第一个参数传递。 如果未指定 DllSurrogateExecutable,COM 会将 NULL 作为 CreateProcess 函数的第一个参数的值传递。

CoRegisterSurrogate

DLL 代理项

DllSurrogate

ISurrogate