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.

50 lines
1.2 KiB

  1. import "objidl.idl";
  2. import "oleidl.idl";
  3. import "oaidl.idl";
  4. import "wbemcli.idl";
  5. // flags passed to IWbemDecoupledEventSink::Connect
  6. typedef [v1_enum] enum tag_WBEM_PSEUDO_PROVIDER_CONNECT_FLAGS
  7. {
  8. WBEM_FLAG_NOTIFY_START_STOP = 1,
  9. WBEM_FLAG_NOTIFY_QUERY_CHANGE = 2,
  10. WBEM_FLAG_CHECK_SECURITY = 4
  11. } WBEM_PSEUDO_PROVIDER_CONNECT_FLAGS;
  12. // flags passed to IWbemEventProvider::ProvideEvents
  13. typedef [v1_enum] enum tag_WBEM_PROVIDE_EVENTS_FLAGS
  14. {
  15. WBEM_FLAG_START_PROVIDING = 0,
  16. WBEM_FLAG_STOP_PROVIDING = 1
  17. } WBEM_PROVIDE_EVENTS_FLAGS;
  18. [object, uuid(CD94EBF2-E622-11d2-9CB3-00105A1F4801)]
  19. interface IWbemDecoupledEventSink : IUnknown
  20. {
  21. // "real provider ready to play"
  22. HRESULT Connect(
  23. [in, string] LPCWSTR wszNamespace,
  24. [in, string] LPCWSTR wszProviderName,
  25. [in] long lFlags,
  26. [out] IWbemObjectSink** ppSink,
  27. [out] IWbemServices** ppNamespace);
  28. // real provider wants notifications
  29. HRESULT SetProviderServices([in] IUnknown* pProviderServices, [in] long lFlags);
  30. // real provider doesn't want to play any more
  31. HRESULT Disconnect();
  32. };
  33. [uuid(E002EEEF-E6EA-11d2-9CB3-00105A1F4801)]
  34. library PassiveSink
  35. {
  36. [uuid(E002E4F0-E6EA-11d2-9CB3-00105A1F4801)]
  37. coclass PseudoSink
  38. {
  39. interface IWbemDecoupledEventSink;
  40. };
  41. };