Source code of Windows XP (NT5)
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.

60 lines
1.3 KiB

  1. //+------------------------------------------------------------------------
  2. //
  3. // Class: Common
  4. //
  5. // Purpose: Contains Winnt routines and properties that are common to
  6. // all Winnt objects. Winnt objects get the routines and
  7. // properties through C++ inheritance.
  8. //
  9. //-------------------------------------------------------------------------
  10. #define MAX_DWORD 0xFFFFFFFF
  11. #define SCHEMA_NAME TEXT("Schema")
  12. #define ROOTDSE_NAME TEXT("RootDSE")
  13. //
  14. // Used in the internal get/set option functions
  15. //
  16. #define LDP_CACHE_ENTRY 0
  17. #define LDAP_HANDLE 1
  18. #define OBJECT_CREDENTIALS 2
  19. #define LDAP_SERVER 3
  20. #define LDAP_DN 4
  21. #define LDAP_CHASE_REFERRALS 5
  22. #define LDAP_PAGESIZE 6
  23. #define LDAP_SECURITY_MASK 7
  24. #define LDAP_MUTUAL_AUTH_STATUS 8
  25. #define LDAP_MEMBER_HAS_RANGE 9
  26. HRESULT
  27. MakeUncName(
  28. LPTSTR szSrcBuffer,
  29. LPTSTR szTargBuffer
  30. );
  31. HRESULT
  32. ValidateOutParameter(
  33. BSTR * retval
  34. );
  35. HRESULT
  36. BuildADsGuid(
  37. REFCLSID clsid,
  38. BSTR *pADsClass
  39. );
  40. //
  41. // Accessing Well-known object types
  42. //
  43. typedef struct _filters {
  44. TCHAR szObjectName[MAX_PATH];
  45. DWORD dwFilterId;
  46. } FILTERS, *PFILTERS;
  47. extern PFILTERS gpFilters;
  48. extern DWORD gdwMaxFilters;