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.

60 lines
2.5 KiB

  1. /*============================================================================*\
  2. Windows Network Domain Enumeration APIs. These are a shell around the
  3. TNetDomainEnum class member function. The handle used is nothing more
  4. than the "this" pointer to the instantiated object.
  5. \*============================================================================*/
  6. #include "TCHAR.H"
  7. #define EA_MAX_DOMAIN_NAME_SIZE 260
  8. typedef struct EaWNetDomainInfo
  9. {
  10. TCHAR name[EA_MAX_DOMAIN_NAME_SIZE]; // domain name string
  11. } EaWNetDomainInfo;
  12. //-----------------------------------------------------------------------------
  13. // EaWNetDomainEnumOpen
  14. //
  15. // Creates the enumeration object and gives the caller the handle
  16. //-----------------------------------------------------------------------------
  17. DWORD _stdcall // ret-0 or error code
  18. EaWNetDomainEnumOpen(
  19. void ** handle // out-opaque handle addr to enum
  20. );
  21. //-----------------------------------------------------------------------------
  22. // EaWNetDomainEnumNext
  23. //
  24. // Sets the domain string buffer to the next domain name in the enumeration
  25. //-----------------------------------------------------------------------------
  26. DWORD _stdcall // ret-0 or error code
  27. EaWNetDomainEnumNext(
  28. void * handle ,// i/o-opaque handle to enumeration
  29. EaWNetDomainInfo * domain // out-domain information structure
  30. );
  31. //-----------------------------------------------------------------------------
  32. // EaWNetDomainEnumFirst
  33. //
  34. // Sets the domain string buffer to the first domain name in the enumeration
  35. //-----------------------------------------------------------------------------
  36. DWORD _stdcall // ret-0 or error code
  37. EaWNetDomainEnumFirst(
  38. void * handle ,// i/o-opaque handle to enumeration
  39. EaWNetDomainInfo * domain // out-domain information structure
  40. );
  41. //-----------------------------------------------------------------------------
  42. // EaWNetDomainEnumClose
  43. //
  44. // Closes and destroys the enumeration handle and the objects it contains
  45. //-----------------------------------------------------------------------------
  46. DWORD _stdcall // ret-0 or error code
  47. EaWNetDomainEnumClose(
  48. void * handle // i/o-opaque handle addr to enum
  49. );