Leaked source code of windows server 2003
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.

61 lines
1.3 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // Copyright (C) 2000, Microsoft Corporation
  4. //
  5. // File: DfsAdsiApi.hxx
  6. //
  7. // Contents: Contains #defines for working with ADSI
  8. //
  9. // Classes: none.
  10. //
  11. // History: March. 13 2001, Author: Rohanp
  12. //
  13. //-----------------------------------------------------------------------------
  14. #ifndef __DFSAPSIDEFINES__
  15. #define __DFSADSIDEFINES__
  16. #include <dfsgeneric.hxx>
  17. #include <shellapi.h>
  18. #include <ole2.h>
  19. #include <activeds.h>
  20. #define DFS_VARIANT_INIT { VT_EMPTY, 0 }
  21. #define DFS_AD_CONFIG_DATA L"CN=Dfs-configuration, CN=System"
  22. DFSSTATUS
  23. DfsGetDfsRootADObject(
  24. LPWSTR DCName,
  25. LPWSTR RootName,
  26. IADs **ppRootObject );
  27. DFSSTATUS
  28. DfsEnumerateDfsADRoots(
  29. LPWSTR DCName,
  30. PULONG_PTR pBuffer,
  31. PULONG pBufferSize,
  32. PULONG pEntriesRead,
  33. DWORD MaxEntriesToRead,
  34. LPDWORD pResumeHandle,
  35. PULONG pSizeRequired );
  36. DFSSTATUS
  37. DfsDeleteDfsRootObject(
  38. LPWSTR DCName,
  39. LPWSTR RootName );
  40. DFSSTATUS
  41. DfsGenerateDfsAdNameContext(
  42. PUNICODE_STRING pString);
  43. DFSSTATUS
  44. DfsCheckRootADObjectExistence(
  45. LPWSTR DCName,
  46. PUNICODE_STRING pRootName,
  47. GUID *pGuid);
  48. #endif