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.

72 lines
1.4 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // FILE
  4. //
  5. // iasntds.h
  6. //
  7. // SYNOPSIS
  8. //
  9. // Declares global objects and functions for the IAS NTDS API.
  10. //
  11. // MODIFICATION HISTORY
  12. //
  13. // 05/11/1998 Original version.
  14. // 07/13/1998 Clean up header file dependencies.
  15. // 08/25/1998 Added IASNtdsQueryUserAttributes.
  16. // 09/02/1998 Added 'scope' parameter to IASNtdsQueryUserAttributes.
  17. // 03/10/1999 Added IASNtdsIsNativeModeDomain.
  18. //
  19. ///////////////////////////////////////////////////////////////////////////////
  20. #ifndef _IASNTDS_H_
  21. #define _IASNTDS_H_
  22. #if _MSC_VER >= 1000
  23. #pragma once
  24. #endif
  25. #include <winldap.h>
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29. //////////
  30. // API must be initialized prior to accessing any of the global objects.
  31. //////////
  32. DWORD
  33. WINAPI
  34. IASNtdsInitialize( VOID );
  35. //////////
  36. // API should be uninitialized when done.
  37. //////////
  38. VOID
  39. WINAPI
  40. IASNtdsUninitialize( VOID );
  41. //////////
  42. // Returns TRUE if the specified domain is running in native mode.
  43. //////////
  44. BOOL
  45. WINAPI
  46. IASNtdsIsNativeModeDomain(
  47. IN PCWSTR domain
  48. );
  49. //////////
  50. // Reads attributes from a user object.
  51. //////////
  52. DWORD
  53. WINAPI
  54. IASNtdsQueryUserAttributes(
  55. IN PCWSTR domain,
  56. IN PCWSTR username,
  57. IN ULONG scope,
  58. IN PWCHAR attrs[],
  59. OUT LDAPMessage** msg
  60. );
  61. #ifdef __cplusplus
  62. }
  63. #endif
  64. #endif // _IASNTDS_H_