Directory Services |
The DSBROWSEINFO structure is used with the DsBrowseForContainer function to supply and return data about the Active Directory® container browser dialog box.
typedef struct {
DWORD cbStruct;
HWND hwndOwner;
LPCTSTR pszCaption;
LPCTSTR 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;
Value | Meaning |
---|---|
DSBI_CHECKBOXES | Causes a checkbox to be placed next to each item in the tree. The user can use the mouse to select and clear this checkbox. This currently has limited usage because there is no way to set or get the check state of an item. |
DSBI_ENTIREDIRECTORY | Includes all the trusted domains to the server specified in pszRoot or, by default, the domain that the user is logged in to. |
DSBI_EXPANDONOPEN | When the dialog box opens, the container specified in pszPath will be visible and selected. |
DSBI_HASCREDENTIALS | pUserName and pPassword are used for the access credentials. Otherwise, if this member does not contain DSBI_SIMPLEAUTHENTICATE, the dialog uses the security context of the calling thread. |
DSBI_IGNORETREATASLEAF | When determining if the object is displayed in the dialog box, the treatAsLeaf display specifier is ignored. |
DSBI_INCLUDEHIDDEN | Include hidden objects in the dialog box. |
DSBI_NOBUTTONS | The + and - buttons are not displayed in the dialog box. |
DSBI_NOLINES | The lines connecting the objects in the dialog box are not be displayed. |
DSBI_NOLINESATROOT | The lines and buttons above the root objects are not displayed. |
DSBI_NOROOT | The root object, specified by pszRoot, is not displayed and the immediate children of the root are displayed at the root of the tree. This flag has no effect if pszRoot is NULL or if this member contains DSBI_ENTIREDIRECTORY. |
DSBI_RETURN_FORMAT | Indicates that the dwReturnFormat member is valid. If this flag is not set, the path format defaults to X.500. |
DSBI_RETURNOBJECTCLASS | Indicates that the pszObjectClass and cchObjectClass are valid and should be filled. |
DSBI_SIMPLEAUTHENTICATE | Indicates that secure authentication is not required when calling ADsOpenObject. |
Client: Included in Windows XP and
Windows 2000 Professional.
Server: Included in Windows Server 2003 and
Windows 2000 Server.
Unicode: Declared as Unicode and ANSI structures.
Header: Declared in Dsclient.h.
DsBrowseForContainer, ADsOpenObject, BFFCallBack, ADS_FORMAT_ENUM