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.

60 lines
1.5 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997 - 1999.
  5. //
  6. // File: dllreg.cxx
  7. //
  8. // Contents: Null and Plain Text filter registration
  9. //
  10. // History: 21-Jan-97 dlee Created
  11. //
  12. //--------------------------------------------------------------------------
  13. #include <pch.cxx>
  14. #pragma hdrstop
  15. #include <filtreg.hxx>
  16. //
  17. // Extra entries for CI Filesystem Client. They happen to have the same form
  18. // as the filter entries.
  19. //
  20. SFilterEntry const ClientFilterObject =
  21. {
  22. L"{AA205A4D-681F-11D0-A243-08002B36FCA4}",
  23. L"File System Client Filter Object",
  24. L"query.dll",
  25. L"Both"
  26. };
  27. SFilterEntry const ClientDocstoreLocator =
  28. {
  29. L"{2A488070-6FD9-11D0-A808-00A0C906241A}",
  30. L"File System Client DocStore Locator Object",
  31. L"query.dll",
  32. L"Both"
  33. };
  34. extern "C" STDAPI FsciDllRegisterServer(void)
  35. {
  36. long dwErr = RegisterAFilter( ClientFilterObject );
  37. if ( ERROR_SUCCESS == dwErr )
  38. dwErr = RegisterAFilter( ClientDocstoreLocator );
  39. return ERROR_SUCCESS == dwErr ? S_OK : SELFREG_E_CLASS;
  40. } //FsciDllRegisterServer
  41. extern "C" STDAPI FsciDllUnregisterServer(void)
  42. {
  43. long dw1 = UnRegisterAFilter( ClientDocstoreLocator );
  44. long dw2 = UnRegisterAFilter( ClientFilterObject );
  45. if ( ERROR_SUCCESS == dw1 && ERROR_SUCCESS == dw2 )
  46. return S_OK;
  47. return S_FALSE;
  48. } //FsciDllUnregisterServer