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.

53 lines
1.4 KiB

  1. //**************************************************************
  2. // Copyright (C) Microsoft Corporation, 1996 - 1998
  3. //
  4. // convert.h
  5. //
  6. // Description: Conversion tables for metabase properties
  7. // corresponding to ADSI names
  8. //
  9. // History: 15-July-98 Tamas Nemeth (t-tamasn) Created.
  10. //
  11. //**************************************************************
  12. #if !defined (__CONVERT_H)
  13. #define __CONVERT_H
  14. #include <afx.h>
  15. #include <tchar.h>
  16. //*************************************************
  17. // METABASE CONSTANT - ADSI PROPERTY NAME TABLE
  18. //*************************************************
  19. struct tPropertyNameTable;
  20. tPropertyNameTable gPropertyNameTable[];
  21. struct tPropertyNameTable
  22. {
  23. DWORD dwCode;
  24. LPCTSTR lpszName;
  25. static CString MapCodeToName(DWORD dwCode, tPropertyNameTable * PropertyNameTable=::gPropertyNameTable);
  26. };
  27. //************************************************
  28. // PROPERTY PREDEFINED VALUES TABLE
  29. //************************************************
  30. struct tValueTable;
  31. tValueTable gValueTable[];
  32. struct tValueTable
  33. {
  34. enum {TYPE_EXCLUSIVE=1};
  35. DWORD dwCode;
  36. LPCTSTR lpszName;
  37. DWORD dwRelatedPropertyCode; // code of the Property this value can be used for
  38. DWORD dwFlags; //internal flags (nothing to do with metadata)
  39. static CString MapValueContentToString(DWORD dwValueContent, DWORD dwRelatedPropertyCode, tValueTable * ValueTable=::gValueTable);
  40. };
  41. #endif