windows-nt/Source/XPSP1/NT/net/layer2svc/wastore/dsstore.h
2020-09-26 16:20:57 +08:00

91 lines
2.3 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, 2001.
//
// File: dsstore.h
//
// Contents: Policy management for directory
//
//
// History: TaroonM
// 10/30/01
//
//----------------------------------------------------------------------------
DWORD
OpenDirectoryServerHandle(
LPWSTR pszDomainName,
DWORD dwPortNumber,
HLDAP * phLdapBindHandle
);
DWORD
CloseDirectoryServerHandle(
HLDAP hLdapBindHandle
);
DWORD
ReadPolicyObjectFromDirectory(
HLDAP hLdapBindHandle,
LPWSTR pszPolicyDN,
PWIRELESS_POLICY_OBJECT * ppWirelessPolicyObject
);
DWORD
AppendCommonNameToQuery(
LPWSTR szQueryBuffer,
LPWSTR szCommonName
);
DWORD
ComputePrelimCN(
LPWSTR szDN,
LPWSTR szCommonName
);
DWORD
UnMarshallPolicyObject(
HLDAP hLdapBindHandle,
LPWSTR pszPolicyDN,
PWIRELESS_POLICY_OBJECT * ppWirelessPolicyObject,
LDAPMessage *res
);
typedef struct _ldapobject
{
union {
WCHAR *strVals;
struct berval *bVals;
} val;
} LDAPOBJECT, *PLDAPOBJECT;
#define LDAPOBJECT_STRING(pldapobject) ((pldapobject)->val.strVals)
#define LDAPOBJECT_BERVAL(pldapobject) ((pldapobject)->val.bVals)
#define LDAPOBJECT_BERVAL_VAL(pldapobject) ((pldapobject)->val.bVals->bv_val)
#define LDAPOBJECT_BERVAL_LEN(pldapobject) ((pldapobject)->val.bVals->bv_len)
void
FreeWirelessPolicyObject(
PWIRELESS_POLICY_OBJECT pWirelessPolicyObject
);
DWORD
ComputePolicyContainerDN(
LPWSTR pszPolicyDN,
LPWSTR * ppszPolicyContainerDN
);
DWORD
ComputeDefaultDirectory(
LPWSTR * ppszDefaultDirectory
);