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.

71 lines
1.6 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1996.
  5. //
  6. // File: var2ldap.cxx
  7. //
  8. // Contents: LDAP Object to Variant Copy Routines
  9. //
  10. // Functions:
  11. //
  12. // History: 25-Apr-96 yihsins Created.
  13. //
  14. //----------------------------------------------------------------------------
  15. #ifndef __VAR2LDAP_H__
  16. #define __VAR2LDAP_H__
  17. HRESULT
  18. VarTypeToLdapTypeCopy(
  19. LPWSTR pszServerName,
  20. CCredentials& Credentials,
  21. DWORD dwLdapType,
  22. PVARIANT lpVarSrcObject,
  23. PLDAPOBJECT lpLdapDestObject
  24. );
  25. HRESULT
  26. VarTypeToLdapTypeCopyConstruct(
  27. LPWSTR pszServerName,
  28. CCredentials& Credentials,
  29. DWORD dwLdapType,
  30. LPVARIANT pVarSrcObjects,
  31. DWORD dwNumObjects,
  32. LDAPOBJECTARRAY *pLdapDestObjects
  33. );
  34. HRESULT
  35. VarTypeToLdapTypeString(
  36. PVARIANT lpVarSrcObject,
  37. PLDAPOBJECT lpLdapDestObject
  38. );
  39. HRESULT
  40. GetLdapSyntaxFromVariant(
  41. VARIANT * pvProp,
  42. PDWORD pdwSyntaxId, // below are needed if we have to hit server
  43. LPTSTR pszServerPath,
  44. LPTSTR pszAttrName,
  45. CCredentials& Credentials,
  46. DWORD dwPort
  47. );
  48. //
  49. // Routine to convert DNWithBinary to ldap.
  50. //
  51. HRESULT
  52. VarTypeToLdapTypeDNWithBinary(
  53. PVARIANT pVarSrcObject,
  54. PLDAPOBJECT pLdapDestObject
  55. );
  56. //
  57. // Routine to convert DNWithString to ldap.
  58. //
  59. HRESULT
  60. VarTypeToLdapTypeDNWithString(
  61. PVARIANT pVarSrcObject,
  62. PLDAPOBJECT pLdapDestObject
  63. );
  64. #endif //__VAR2LDAP_H__
  65.