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
2.0 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. NDS_BUFFER_HANDLE _hSearchResult;
  29. LONG _dwObjects;
  30. PADSNDS_OBJECT_INFO _pObjects;
  31. LONG _dwObjectCurrent;
  32. BOOL _fInUse;
  33. }NDS_SEARCH_RESULT, *PNDS_SEARCH_RESULT;
  34. typedef struct _nds_search_pref {
  35. BOOL _dwSearchScope;
  36. BOOL _fDerefAliases;
  37. BOOL _fAttrsOnly;
  38. BOOL _fCacheResults;
  39. }NDS_SEARCH_PREF, *PNDS_SEARCH_PREF;
  40. //
  41. // NDS search structure; Contains all the information pertaining to the
  42. // current search
  43. //
  44. typedef struct _nds_searchinfo {
  45. NDS_BUFFER_HANDLE _pFilterBuf;
  46. LPWSTR *_ppszAttrs;
  47. DWORD _nAttrs;
  48. NDS_SEARCH_RESULT *_pSearchResults;
  49. DWORD _cSearchResults;
  50. nint32 _lIterationHandle;
  51. LONG _dwCurrResult;
  52. DWORD _dwCurrAttr;
  53. DWORD _cResultPrefetched;
  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