| Platform SDK: Active Directory, ADSI, and Directory Services |
The DSBROWSEINFO structure is used by the DsBrowseForContainer function to specify the state and behavior of a dialog for browsing parts of Active Directory™.
typedef struct DSBROWSEINFOW
{
DWORD cbStruct;
HWND hwndOwner;
LPCWSTR pszCaption;
LPCWSTR pszTitle;
LPCWSTR pszRoot;
LPWSTR pszPath;
ULONG cchPath;
DWORD dwFlags;
BFFCALLBACK pfnCallback;
LPARAM lParam;
DWORD dwReturnFormat;
LPCWSTR pUserName;
LPCWSTR pPassword;
LPWSTR pszObjectClass;
ULONG cchObjectClass;
} DSBROWSEINFOW, *PDSBROWSEINFOW;
| dwFlags | Description |
|---|---|
| DSBI_CHECKBOXES | NOT IMPLEMENTED. |
| DSBI_ENTIREDIRECTORY | Includes all the trusted domains to the server specified in pszPath (or the domain that the user is logged in to). |
| DSBI_EXPANDONOPEN | When opening the dialog, expands the tree view to the path specified in pszPath. |
| DSBI_HASCREDENTIALS | Indicates that pUserName and pPassword are valid. |
| DSBI_IGNORETREATASLEAF | When determining the container attribute for the objects, ignores the display specifier's attributes for this object. |
| DSBI_INCLUDEHIDDEN | Shows all objects, even those marked as hidden. |
| DSBI_NOBUTTONS | Removes + or - icons from the tree view. |
| DSBI_NOLINES | Removes lines connecting each node in the tree view. |
| DSBI_NOLINESATROOT | Removes lines from the root down from the tree view. |
| DSBI_NOROOT | Removes the root object in the tree. |
| DSBI_RETURN_FORMAT | Indicates that the dwReturnFormat is valid and can be used to format the return path. If it is not valid, an X.500 format name is specified. |
| DSBI_RETURNOBJECTCLASS | Indicates that the pszObjectClass and cchObjectClass are valid and should be filled. |
| DSBI_SIMPLEAUTHENTICATE | Indicates that secure authentication is not needed when calling ADsOpenObject. |
The caller of the DsBrowseForContainer fills in this structure in order to display the browse dialog for a user to navigate along an Active Directory tree. An example of such an dialog can be seen when you choose the "Browse…" button in "Start->Search->For Printers" on a Windows® 2000 machine belonging to an Active Directory domain.
Windows NT/2000: Requires Windows 2000.
Header: Declared in Dsclient.h.
Unicode: Declared as Unicode and ANSI structures.
Active Directory Display Structures, DsBrowseForContainer, _BrowseCallBack, DSBITEM