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.

70 lines
1.8 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1994 - 2000.
  5. //
  6. // File: propdata.cxx
  7. //
  8. // Contents: Declaration of static data about property types.
  9. //
  10. // Classes: VARNT_DATA - size and allignment constraints of variant types
  11. // CTableVariant - Wrapper around PROPVARIANT
  12. //
  13. // Functions:
  14. //
  15. // History: 25 Jan 1994 AlanW Created
  16. //
  17. //--------------------------------------------------------------------------
  18. #include "pch.cxx"
  19. #pragma hdrstop
  20. #include <bigtable.hxx>
  21. #include "propdata.hxx"
  22. //
  23. // Standard properties known to Query and whose type cannot vary.
  24. //
  25. const PROP_TYPE aPropType [] = {
  26. { pidWorkId, TYPE_WORKID },
  27. { pidInvalid, VT_EMPTY },
  28. // Standard storage properties
  29. { pidDirectory, VT_LPWSTR },
  30. { pidClassId, VT_CLSID },
  31. { pidStorageType, VT_UI4 },
  32. { pidFileIndex, VT_UI8 },
  33. { pidLastChangeUsn, VT_I8 },
  34. { pidName, VT_LPWSTR },
  35. { pidPath, VT_LPWSTR },
  36. { pidSize, VT_I8 },
  37. { pidAttrib, VT_UI4 },
  38. { pidWriteTime, VT_FILETIME },
  39. { pidCreateTime, VT_FILETIME },
  40. { pidAccessTime, VT_FILETIME },
  41. // { pidContents, ??? }, // No point
  42. { pidShortName, VT_LPWSTR },
  43. // Standard query properties
  44. { pidRank, VT_I4 },
  45. // { pidRankVector, VT_VECTOR|VT_UI4 }, // no point
  46. { pidHitCount, VT_I4 },
  47. // Special columns for OLE-DB
  48. { pidBookmark, VT_EMPTY }, // maps to pidWorkid
  49. { pidChapter, VT_I4 },
  50. { pidRowStatus, VT_I1 },
  51. { pidSelf, VT_EMPTY }, // maps to pidWorkid
  52. // web-server-specific pids
  53. { pidVirtualPath, VT_LPWSTR },
  54. };
  55. const unsigned cPropType = sizeof aPropType / sizeof aPropType[0];