Contents Index Topic Contents | ||
Previous Topic: IWABObject::Import Next Topic: IWABObject::SetMe |
IWABObject::LDAPUrl
HRESULT IWABObject::LDAPUrl ( HWND hWnd, ULONG ulFlags, LPTSTR lpszLDAPURL, LPMailUser * lppMailUser );This method processes a given LDAP Url and displays corresponding results. If the URL only contains a server name, the method will display the WAB Find dialog with the server name filled in, enabling the user to manually search the server. If the URL contains an explicit LDAP query, this method performs a search based on the query. If the query produces a single result, the method shows details on the single result, else if the query has multiple results, the method shows the WAB Find dialog with multiple search results filled in. If WABOBJECT_LDAPURL_RETURN_MAILUSER is specified in the ulFlags parameter, the method returns a IMailUser object, if the query returns a single specific result, else returns a MAPI_E_AMBIGUOUS_RECIP if the query returns multiple hits.
- Returns S_OK if successful.
- hWnd
- HWND of the parent for displayed dialogs.
- ulFlags
- Flags specifying behavior. Can be zero, or WABOBJECT_LDAPURL_RETURN_MAILUSER.
- lpszLDAPUrl
- URL string, starting with ldap://. (Format for LDAP URLs is specified in RFC-1959)
- lppMailUser
- Returned IMailUser object, if requested. Null otherwise.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.