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.

49 lines
921 B

  1. /*++
  2. Copyright (c) Microsoft Corporation
  3. Module Name:
  4. comgoop.cpp
  5. Abstract:
  6. Wrapper to create the XML parser that emulates COM activation of the inproc server.
  7. Author:
  8. Michael J. Grier (MGrier) 23-Feb-2000
  9. Revision History:
  10. --*/
  11. #include "stdinc.h"
  12. #include <windows.h>
  13. #include <sxsp.h>
  14. #include <ole2.h>
  15. #include "xmlparser.hxx"
  16. BOOL
  17. SxspGetXMLParser(
  18. REFIID riid,
  19. PVOID *ppvObj
  20. )
  21. {
  22. FN_PROLOG_WIN32
  23. // NTRAID#NTBUG9 - 569466 - 2002/04/25 - Smarter use of COM and the XML parser
  24. CSmartPtr<XMLParser> pXmlParser;
  25. if (ppvObj != NULL)
  26. *ppvObj = NULL;
  27. PARAMETER_CHECK(ppvObj != NULL);
  28. IFW32FALSE_EXIT(pXmlParser.Win32Allocate(__FILE__, __LINE__));
  29. IFCOMFAILED_EXIT(pXmlParser->HrInitialize());
  30. IFCOMFAILED_EXIT(pXmlParser->QueryInterface(riid, ppvObj));
  31. pXmlParser.Detach();
  32. FN_EPILOG
  33. }