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.

50 lines
1.0 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1998, Microsoft Corp. All rights reserved.
  4. //
  5. // FILE
  6. //
  7. // attrcvt.h
  8. //
  9. // SYNOPSIS
  10. //
  11. // This file declares methods for converting attributes to
  12. // different formats.
  13. //
  14. // MODIFICATION HISTORY
  15. //
  16. // 02/26/1998 Original version.
  17. //
  18. ///////////////////////////////////////////////////////////////////////////////
  19. #ifndef _ATTRCVT_H_
  20. #define _ATTRCVT_H_
  21. #if _MSC_VER >= 1000
  22. #pragma once
  23. #endif
  24. #include <iaspolcy.h>
  25. #include <winldap.h>
  26. //////////
  27. // Convert a variant to a newly allocated IASATTRIBUTE. The source variant
  28. // will be coerced to the appropriate type.
  29. //////////
  30. PIASATTRIBUTE
  31. WINAPI
  32. IASAttributeFromVariant(
  33. VARIANT* src,
  34. IASTYPE type
  35. ) throw (_com_error);
  36. //////////
  37. // Convert an LDAP berval to a newly allocated IASATTRIBUTE.
  38. //////////
  39. PIASATTRIBUTE
  40. WINAPI
  41. IASAttributeFromBerVal(
  42. const berval& src,
  43. IASTYPE type
  44. ) throw (_com_error);
  45. #endif // _ATTRCVT_H_