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.

56 lines
1.5 KiB

  1. // ConnMgr.idl : IDL source for ConnMgr.dll
  2. //
  3. // This file will be processed by the MIDL tool to
  4. // produce the type library (ConnMgr.tlb) and marshalling code.
  5. import "oaidl.idl";
  6. import "ocidl.idl";
  7. import "wbemcli.idl";
  8. [
  9. uuid(FA84E6F2-0B7B-11D2-BDCB-00C04FA35447),
  10. helpstring("IConnectionManager Interface"),
  11. pointer_default(unique)
  12. ]
  13. interface IConnectionManager : IUnknown
  14. {
  15. [helpstring("method GetConnection")]
  16. HRESULT GetConnection([in]BSTR bsMachineName,
  17. [out]IWbemServices** ppWbemService,
  18. [out]long* lStatus);
  19. [helpstring("method RegisterEventNotification")]
  20. HRESULT RegisterEventNotification([in]BSTR bsMachineName,
  21. [in]BSTR bsQuery,
  22. [in]IWbemObjectSink* pSink);
  23. [helpstring("method RemoveConnection")]
  24. HRESULT RemoveConnection([in] BSTR bsMachineName,
  25. [in]IWbemObjectSink* pSink);
  26. [helpstring("method ExecQueryAsync")] HRESULT ExecQueryAsync([in]BSTR bsMachineName, [in]BSTR bsQuery, [in]IWbemObjectSink* pSink);
  27. [helpstring("method ConnectToNamespace")] HRESULT ConnectToNamespace([in]BSTR bsNamespace, [out]IWbemServices** ppService);
  28. };
  29. [
  30. uuid(FA84E6E5-0B7B-11D2-BDCB-00C04FA35447),
  31. version(1.0),
  32. helpstring("ConnMgr 1.0 Type Library")
  33. ]
  34. library CONNMGRLib
  35. {
  36. importlib("stdole32.tlb");
  37. importlib("stdole2.tlb");
  38. [
  39. uuid(FA84E6F3-0B7B-11D2-BDCB-00C04FA35447),
  40. helpstring("ConnectionManager Class")
  41. ]
  42. coclass ConnectionManager
  43. {
  44. [default] interface IConnectionManager;
  45. };
  46. };