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.

58 lines
1.5 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1991 - 1996.
  5. //
  6. // File: propspec.hxx
  7. //
  8. // Contents: CI Property Spec
  9. //
  10. // Classes: CCiPropSpec
  11. //
  12. // History: 26-Sep-94 BartoszM Created
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. //
  17. // This should be the only definition of guidStorage & guidQuery in OFS
  18. //
  19. const GUID guidStorage = PSGUID_STORAGE;
  20. const GUID guidQueryMetadata = PSGUID_QUERY_METADATA;
  21. const GUID guidQuery = DBQUERYGUID;
  22. //+---------------------------------------------------------------------------
  23. //
  24. // Class: CCiPropSpec
  25. //
  26. // Purpose: Adds OFS specific functionality to CFullPropSpec
  27. //
  28. // History: 26-Sep-94 BartoszM Created
  29. //
  30. // Notes: CFullPropSpec can be safely cast into CCiPropSpec
  31. //
  32. //----------------------------------------------------------------------------
  33. class CCiPropSpec: public CFullPropSpec
  34. {
  35. public:
  36. inline BOOL IsContents () const;
  37. inline BOOL IsStorageSet () const;
  38. };
  39. inline BOOL CCiPropSpec::IsContents () const
  40. {
  41. return IsPropertyPropid()
  42. && GetPropertyPropid() == PID_STG_CONTENTS
  43. && IsStorageSet ();
  44. }
  45. inline BOOL CCiPropSpec::IsStorageSet () const
  46. {
  47. return RtlEqualMemory ( (GUID *) &GetPropSet(), (GUID *) &guidStorage, sizeof (guidStorage) );
  48. }