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.

60 lines
1.7 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1997.
  5. //
  6. // File: cifwexp.cxx
  7. //
  8. // Contents: Additional exports from this dll.
  9. //
  10. // History: 2-26-97 srikants Created
  11. //
  12. //----------------------------------------------------------------------------
  13. #include <pch.cxx>
  14. #pragma hdrstop
  15. #include <cifwexp.hxx>
  16. #include "fatquery.hxx"
  17. #include <tfilt.hxx>
  18. #include <defbreak.hxx>
  19. //+---------------------------------------------------------------------------
  20. //
  21. // Function: MakeGenericQueryForDocStore
  22. //
  23. // Synopsis: Creates an internal query for in-process binding to an ICommand
  24. //
  25. // Arguments: [pDbProperties] - Pointer to the properties to be used.
  26. // [pDocStore] - Pointer to the doc store to query
  27. // [ppQuery] - [out] Pointer to the query object.
  28. //
  29. // History: 4-22-97 KrishnaN Created
  30. //
  31. //----------------------------------------------------------------------------
  32. SCODE MakeGenericQueryForDocStore( IDBProperties * pDbProperties,
  33. ICiCDocStore * pDocStore,
  34. PIInternalQuery ** ppQuery )
  35. {
  36. if ( 0 == pDbProperties || 0 == ppQuery )
  37. return E_INVALIDARG;
  38. SCODE sc = S_OK;
  39. TRY
  40. {
  41. *ppQuery = new CGenericQuery( pDbProperties, pDocStore );
  42. }
  43. CATCH( CException, e )
  44. {
  45. vqDebugOut(( DEB_ERROR,
  46. "Catastrophic error 0x%x in MakeGenericQueryForDocStore\n",
  47. e.GetErrorCode() ));
  48. *ppQuery = 0;
  49. sc = GetOleError( e );
  50. }
  51. END_CATCH;
  52. return sc;
  53. }