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.

71 lines
1.8 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1994.
  5. //
  6. // File: cifrmcom.hxx
  7. //
  8. // Contents: Common declarations to the frame work client and content
  9. // index.
  10. //
  11. // History: 12-03-96 srikants Created
  12. //
  13. //----------------------------------------------------------------------------
  14. #pragma once
  15. inline PROPVARIANT * ConvertToPropVariant( CStorageVariant * pstgVar )
  16. {
  17. return (PROPVARIANT *) (void *) pstgVar;
  18. }
  19. inline PROPVARIANT const * ConvertToPropVariant( CStorageVariant const * pstgVar )
  20. {
  21. return (PROPVARIANT const *) (void *) pstgVar;
  22. }
  23. inline CStorageVariant * ConvertToStgVariant( PROPVARIANT * pVariant )
  24. {
  25. return (CStorageVariant *) (void *) pVariant;
  26. }
  27. inline CStorageVariant const * ConvertToStgVariant( PROPVARIANT const * pVariant )
  28. {
  29. return (CStorageVariant const *) (void const *) pVariant;
  30. }
  31. //+---------------------------------------------------------------------------
  32. //
  33. // Class: CDocumentUpdateInfo
  34. //
  35. // Purpose: A wrapper class for the CI_DOCUMENT_UPDATE_INFO structure.
  36. //
  37. // History: 12-05-96 srikants Created
  38. //
  39. // Notes:
  40. //
  41. //----------------------------------------------------------------------------
  42. class CDocumentUpdateInfo : public CI_DOCUMENT_UPDATE_INFO
  43. {
  44. public:
  45. CDocumentUpdateInfo( WORKID wid,
  46. VOLUMEID volId,
  47. USN usnIn,
  48. BOOL fDelete )
  49. {
  50. RtlZeroMemory( this, sizeof(CI_DOCUMENT_UPDATE_INFO) );
  51. workId = wid;
  52. volumeId = volId;
  53. usn = usnIn;
  54. partId = 1;
  55. change = fDelete ? CI_UPDATE_DELETE : CI_UPDATE_MODIFY;
  56. }
  57. private:
  58. };