Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
1.9 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1995.
  5. //
  6. // File: cdssrch.hxx
  7. //
  8. // Contents: Master include file for Active Directory Search using NDS
  9. //
  10. // Functions:
  11. //
  12. //
  13. //
  14. //
  15. //
  16. // Notes: This file contains the declarations of the helper functions
  17. // carry out the search and get the results from the search
  18. //
  19. // History: 03-Mar-97 ShankSh Created.
  20. //
  21. //----------------------------------------------------------------------------
  22. #ifndef _CDSSRCH_HXX
  23. #define _CDSSRCH_HXX
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif /* __cplusplus */
  27. typedef struct nds_search_result {
  28. HANDLE _hSearchResult;
  29. LONG _lObjects;
  30. LPNDS_OBJECT_INFO _pObjects;
  31. LONG _lObjectCurrent;
  32. }NDS_SEARCH_RESULT, *PNDS_SEARCH_RESULT;
  33. typedef struct _nds_search_pref {
  34. int _iScope;
  35. BOOL _fDerefAliases;
  36. BOOL _fAttrsOnly;
  37. }NDS_SEARCH_PREF, *PNDS_SEARCH_PREF;
  38. //
  39. // NDS search structure; Contains all the information pertaining to the
  40. // current search
  41. //
  42. typedef struct _nds_searchinfo {
  43. HANDLE _hConnection;
  44. LPQUERY_NODE _pQueryNode;
  45. LPWSTR _pszBindContext;
  46. LPWSTR _pszSearchFilter;
  47. LPWSTR *_ppszAttrs;
  48. NDS_SEARCH_RESULT *_pSearchResults;
  49. DWORD _cSearchResults;
  50. DWORD _dwIterHandle;
  51. DWORD _dwCurrResult;
  52. DWORD _dwCurrAttr;
  53. BOOL _fResultPrefetched;
  54. BOOL _fCheckForDuplicates;
  55. LPWSTR _pszAttrNameBuffer;
  56. BOOL _fADsPathPresent;
  57. BOOL _fADsPathReturned;
  58. NDS_SEARCH_PREF _SearchPref;
  59. }NDS_SEARCHINFO, *PNDS_SEARCHINFO;
  60. #ifdef __cplusplus
  61. }
  62. #endif /* __cplusplus */
  63. #endif