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.

90 lines
2.3 KiB

  1. //----------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2001.
  5. //
  6. // File: dsstore.h
  7. //
  8. // Contents: Policy management for directory
  9. //
  10. //
  11. // History: TaroonM
  12. // 10/30/01
  13. //
  14. //----------------------------------------------------------------------------
  15. DWORD
  16. OpenDirectoryServerHandle(
  17. LPWSTR pszDomainName,
  18. DWORD dwPortNumber,
  19. HLDAP * phLdapBindHandle
  20. );
  21. DWORD
  22. CloseDirectoryServerHandle(
  23. HLDAP hLdapBindHandle
  24. );
  25. DWORD
  26. ReadPolicyObjectFromDirectory(
  27. HLDAP hLdapBindHandle,
  28. LPWSTR pszPolicyDN,
  29. PWIRELESS_POLICY_OBJECT * ppWirelessPolicyObject
  30. );
  31. DWORD
  32. AppendCommonNameToQuery(
  33. LPWSTR szQueryBuffer,
  34. LPWSTR szCommonName
  35. );
  36. DWORD
  37. ComputePrelimCN(
  38. LPWSTR szDN,
  39. LPWSTR szCommonName
  40. );
  41. DWORD
  42. UnMarshallPolicyObject(
  43. HLDAP hLdapBindHandle,
  44. LPWSTR pszPolicyDN,
  45. PWIRELESS_POLICY_OBJECT * ppWirelessPolicyObject,
  46. LDAPMessage *res
  47. );
  48. typedef struct _ldapobject
  49. {
  50. union {
  51. WCHAR *strVals;
  52. struct berval *bVals;
  53. } val;
  54. } LDAPOBJECT, *PLDAPOBJECT;
  55. #define LDAPOBJECT_STRING(pldapobject) ((pldapobject)->val.strVals)
  56. #define LDAPOBJECT_BERVAL(pldapobject) ((pldapobject)->val.bVals)
  57. #define LDAPOBJECT_BERVAL_VAL(pldapobject) ((pldapobject)->val.bVals->bv_val)
  58. #define LDAPOBJECT_BERVAL_LEN(pldapobject) ((pldapobject)->val.bVals->bv_len)
  59. void
  60. FreeWirelessPolicyObject(
  61. PWIRELESS_POLICY_OBJECT pWirelessPolicyObject
  62. );
  63. DWORD
  64. ComputePolicyContainerDN(
  65. LPWSTR pszPolicyDN,
  66. LPWSTR * ppszPolicyContainerDN
  67. );
  68. DWORD
  69. ComputeDefaultDirectory(
  70. LPWSTR * ppszDefaultDirectory
  71. );
  72.