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.

49 lines
1.1 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. #define LDP_CACHE_ENTRY 0
  14. #define LDAP_HANDLE 1
  15. #define OBJECT_CREDENTIALS 2
  16. #define LDAP_SERVER 3
  17. #define LDAP_DN 4
  18. #define LDAP_MUTUAL_AUTH_STATUS 8
  19. #define LDAP_MEMBER_HAS_RANGE 9
  20. #define LDAP_USERACCOUNTCONTROL 0xa
  21. HRESULT
  22. MakeUncName(
  23. LPTSTR szSrcBuffer,
  24. LPTSTR szTargBuffer
  25. );
  26. HRESULT
  27. ValidateOutParameter(
  28. BSTR * retval
  29. );
  30. //
  31. // Accessing Well-known object types
  32. //
  33. typedef struct _filters {
  34. TCHAR szObjectName[MAX_PATH];
  35. DWORD dwFilterId;
  36. } FILTERS, *PFILTERS;
  37. extern PFILTERS gpFilters;
  38. extern DWORD gdwMaxFilters;