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.

82 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. sink.hxx
  5. Abstract:
  6. IIS Services IISADMIN Extension
  7. Unicode Metadata Sink include file.
  8. Author:
  9. Michael W. Thomas 16-Sep-97
  10. --*/
  11. #ifndef _SVCEXT_SINK_
  12. #define _SVCEXT_SINK_
  13. #include <imd.h>
  14. class CSvcExtImpIMDCOMSINK : public IMDCOMSINKW {
  15. public:
  16. CSvcExtImpIMDCOMSINK(IMDCOM * pcCom);
  17. ~CSvcExtImpIMDCOMSINK();
  18. HRESULT _stdcall
  19. QueryInterface(REFIID riid, void **ppObject);
  20. ULONG _stdcall
  21. AddRef();
  22. ULONG _stdcall
  23. Release();
  24. HRESULT STDMETHODCALLTYPE ComMDSinkNotify(
  25. /* [in] */ METADATA_HANDLE hMDHandle,
  26. /* [in] */ DWORD dwMDNumElements,
  27. /* [size_is][in] */ MD_CHANGE_OBJECT __RPC_FAR pcoChangeList[ ]);
  28. HRESULT STDMETHODCALLTYPE ComMDShutdownNotify()
  29. {
  30. return (HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED));
  31. }
  32. HRESULT STDMETHODCALLTYPE ComMDEventNotify(
  33. /* [in] */ DWORD dwMDEvent);
  34. private:
  35. VOID
  36. RegisterFrontPage(
  37. LPWSTR pszPath
  38. );
  39. VOID
  40. ProcessServerCommand(
  41. LPWSTR pszPath
  42. );
  43. ULONG m_dwRefCount;
  44. IMDCOM *m_pcCom;
  45. };
  46. BOOL
  47. GetServiceNameFromPath(
  48. LPWSTR pszPath,
  49. LPWSTR pszServiceName
  50. );
  51. VOID
  52. StartIISService(
  53. LPWSTR pszServiceName
  54. );
  55. #endif