windows-nt/Source/XPSP1/NT/ds/adsi/ldap/var2ldap.hxx
2020-09-26 16:20:57 +08:00

72 lines
1.5 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1996.
//
// File: var2ldap.cxx
//
// Contents: LDAP Object to Variant Copy Routines
//
// Functions:
//
// History: 25-Apr-96 yihsins Created.
//
//----------------------------------------------------------------------------
#ifndef __VAR2LDAP_H__
#define __VAR2LDAP_H__
HRESULT
VarTypeToLdapTypeCopy(
LPWSTR pszServerName,
CCredentials& Credentials,
DWORD dwLdapType,
PVARIANT lpVarSrcObject,
PLDAPOBJECT lpLdapDestObject
);
HRESULT
VarTypeToLdapTypeCopyConstruct(
LPWSTR pszServerName,
CCredentials& Credentials,
DWORD dwLdapType,
LPVARIANT pVarSrcObjects,
DWORD dwNumObjects,
LDAPOBJECTARRAY *pLdapDestObjects
);
HRESULT
VarTypeToLdapTypeString(
PVARIANT lpVarSrcObject,
PLDAPOBJECT lpLdapDestObject
);
HRESULT
GetLdapSyntaxFromVariant(
VARIANT * pvProp,
PDWORD pdwSyntaxId, // below are needed if we have to hit server
LPTSTR pszServerPath,
LPTSTR pszAttrName,
CCredentials& Credentials,
DWORD dwPort
);
//
// Routine to convert DNWithBinary to ldap.
//
HRESULT
VarTypeToLdapTypeDNWithBinary(
PVARIANT pVarSrcObject,
PLDAPOBJECT pLdapDestObject
);
//
// Routine to convert DNWithString to ldap.
//
HRESULT
VarTypeToLdapTypeDNWithString(
PVARIANT pVarSrcObject,
PLDAPOBJECT pLdapDestObject
);
#endif //__VAR2LDAP_H__