大网数据广告活动
域与目录服务

Late Binding What's Happening Under the Hood

· 52CE 我爱测

This topic describes how late binding works in ADSI.

The following list outlines the general process for performing a late bind:

  • Something binds to an ADSI directory object. For example, "LDAP://CN=Jeffsmith,OU=Sales,DC=Fabrikam,DC=COM" binds using COM late binding. This causes ADSI to call the QueryInterface method on the IDispatch interface.
  • ADSI finds an object in the user class and creates an object that supports the appropriate interfaces, such as IADs, IADsUser.
  • ADSI performs a lookup in the registry and finds extension CLSIDs for user. Be aware that ADSI caches this data.
  • Something makes a call to the MyNewMethod method. ADSI looks up its dispatch ID and the dispatch IDs for other ADSI extensions. ADSI then finds the extension that serves this call, and calls the IADsExtension interface for that extension.
  • The extension executes the function.
  • Now, the client writer invokes the YourNewMethod method using the IDispatch interface for the current extension. The extension's IDispatch implementation delegates back to the IDispatch for ADSI.
  • The IDispatch for ADSI again searches for the appropriate extension, or itself, then it calls the appropriate extension using the IADsExtension interface for that extension.

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。