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.

66 lines
1.2 KiB

  1. //+============================================================================
  2. //
  3. // File: Global.hxx
  4. //
  5. // This file provides defines/inlines for use throughout the PropTest
  6. // project. It doesn't assume that anything other than non-PropTest
  7. // includes have already been made.
  8. //
  9. //+============================================================================
  10. #ifndef _GLOBAL_HXX_
  11. #define _GLOBAL_HXX_
  12. #include <pstgserv.h>
  13. #include <olechar.h>
  14. EXTERN_C const IID __declspec(selectany) IID_IFlatStorage = {
  15. /* b29d6138-b92f-11d1-83ee-00c04fc2c6d4 */
  16. 0xb29d6138,
  17. 0xb92f,
  18. 0x11d1,
  19. {0x83, 0xee, 0x00, 0xc0, 0x4f, 0xc2, 0xc6, 0xd4}
  20. };
  21. inline DWORD
  22. DetermineStgFmt( EnumImplementation enumImp )
  23. {
  24. switch( enumImp )
  25. {
  26. case PROPIMP_NTFS:
  27. return( STGFMT_FILE );
  28. case PROPIMP_STORAGE:
  29. return( STGFMT_STORAGE );
  30. default:
  31. return( STGFMT_DOCFILE );
  32. }
  33. };
  34. inline REFIID
  35. DetermineStgIID( EnumImplementation enumImp )
  36. {
  37. switch( enumImp )
  38. {
  39. case PROPIMP_NTFS:
  40. return( IID_IFlatStorage );
  41. case PROPIMP_STORAGE:
  42. return( IID_IStorage );
  43. default:
  44. return( IID_IStorage );
  45. }
  46. }
  47. #endif // _GLOBAL_HXX_