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.

50 lines
1.9 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. // passportservices.idl
  3. //
  4. // ABSTRACT:
  5. // Contains interface definition for IPassportService. Any component
  6. // which needs to be loadable by the global services object
  7. // in the PassportExtension.dll must support this interface.
  8. //
  9. // HISTORY:
  10. // 04/28/00 - created (cfeller)
  11. // 08/10/00 - modified Initialize interface (stevefu)
  12. ///////////////////////////////////////////////////////////////////////////////
  13. import "oaidl.idl";
  14. import "ocidl.idl";
  15. [
  16. object,
  17. uuid(6969D727-7FF7-4c51-8790-86551AF1B4D0),
  18. helpstring("IPassportService Interface"),
  19. pointer_default(unique)
  20. ]
  21. interface IPassportService : IUnknown
  22. {
  23. // Called to init the component to a well-known state
  24. // the second parameter is where you can get a list of loaded components
  25. HRESULT Initialize([in] BSTR bstrConfigFilePath, [in] IServiceProvider* p);
  26. // Called when services manager is about to unload the component
  27. HRESULT Shutdown();
  28. // Part 1 of a two-part call. This call indicates to the component that it should
  29. // get ready to refresh any state that it holds. The externally visible state should
  30. // remain the same to any outside objects using this component. This call expects that
  31. // the component will cache the new state until Part 2.
  32. HRESULT ReloadState([in] IServiceProvider* p);
  33. // Part 2 of a two-part call. The component should now swap the old state with the new
  34. // state it cached in the call to ReloadState().
  35. HRESULT CommitState([in] IServiceProvider* p);
  36. // This is for runtime diagnostics. The component should SysAlloc:: a buffer containing
  37. // formatted information that describes the current internal state of itself. Caller
  38. // is responsible for freeing the memory.
  39. HRESULT DumpState([out,retval] BSTR* pbstrState);
  40. };
  41. ///////////////
  42. // EOF
  43. ///////////////