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.

61 lines
1.4 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. #define LDAP_USERACCOUNTCONTROL 0xa
  27. HRESULT
  28. MakeUncName(
  29. LPTSTR szSrcBuffer,
  30. LPTSTR szTargBuffer
  31. );
  32. HRESULT
  33. ValidateOutParameter(
  34. BSTR * retval
  35. );
  36. HRESULT
  37. BuildADsGuid(
  38. REFCLSID clsid,
  39. BSTR *pADsClass
  40. );
  41. //
  42. // Accessing Well-known object types
  43. //
  44. typedef struct _filters {
  45. TCHAR szObjectName[MAX_PATH];
  46. DWORD dwFilterId;
  47. } FILTERS, *PFILTERS;
  48. extern PFILTERS gpFilters;
  49. extern DWORD gdwMaxFilters;