1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
10 uuid(e051a481-6345-4ba1-bdb1-cf7929955268),
13 helpstring("IDaemonControl Interface"),
14 pointer_default(unique)
16 interface IDaemonControl : IDispatch {
17 [ id(1), helpstring("Returns a filtered copy of the daemon's configuration. "
18 "Only 'host_id' and 'xmpp_login' values are returned, "
19 "because any other values may contain security-sensitive "
21 HRESULT GetConfig([out, retval] BSTR* config_out);
23 [ id(2), helpstring("Returns a string representing the version of "
25 HRESULT GetVersion([out, retval] BSTR* version_out);
27 [ id(3), helpstring("Replaces the existing daemon's configuration with "
28 "the specified settings.") ]
29 HRESULT SetConfig([in] BSTR config);
31 [ id(4), helpstring("Sets the owner window for any windows shown by "
32 "the daemon controller.") ]
33 HRESULT SetOwnerWindow([in] LONG_PTR owner_window);
35 [ id(5), helpstring("Starts the daemon.") ]
36 HRESULT StartDaemon();
38 [ id(6), helpstring("Stops the daemon.") ]
41 [ id(7), helpstring("Modifies the existing daemon's configuration by "
42 "merging it with the specified settings. The 'host_id' "
43 "and 'xmpp_login' values cannot be modified, and must "
44 "not be passed to this method.") ]
45 HRESULT UpdateConfig([in] BSTR config);
50 uuid(655bd819-c08c-4b04-80c2-f160739ff6ef),
53 helpstring("IDaemonControl2 Interface"),
54 pointer_default(unique)
56 interface IDaemonControl2 : IDaemonControl {
57 [ id(8), helpstring("Retrieves the user's consent to collect crash dumps "
58 "and gather usage statistics.") ]
59 HRESULT GetUsageStatsConsent([out] BOOL* allowed,
60 [out] BOOL* set_by_policy);
62 [ id(9), helpstring("Records the user's consent to collect crash dumps "
63 "and gather usage statistics.") ]
64 HRESULT SetUsageStatsConsent([in] BOOL allowed);
69 uuid(b59b96da-83cb-40ee-9b91-c377400fc3e3),
71 helpstring("IRdpDesktopSessionEventHandler Interface"),
72 pointer_default(unique)
74 interface IRdpDesktopSessionEventHandler : IUnknown {
75 [ id(1), helpstring("Notifies that an RDP connection has been established "
77 HRESULT OnRdpConnected();
79 [ id(2), helpstring("Notifies the delegate that the RDP connection has been "
81 HRESULT OnRdpClosed();
86 uuid(6a7699f0-ee43-43e7-aa30-a6738f9bd470),
88 helpstring("IRdpDesktopSession Interface"),
89 pointer_default(unique)
91 interface IRdpDesktopSession : IUnknown {
92 [ id(1), helpstring("Initiates a loopback RDP connection to spawn a new "
93 "Windows session. |width| and |height| specify the "
94 "initial screen resolution. |terminal_id| specifies a "
95 "unique value to be used to identify this connection.") ]
96 HRESULT Connect([in] long width, [in] long height, [in] BSTR terminal_id,
97 [in] IRdpDesktopSessionEventHandler* event_handler);
99 [ id(2), helpstring("Shuts down the connection created by Connect().") ]
100 HRESULT Disconnect();
102 [ id(3), helpstring("Changes the screen resolution.") ]
103 HRESULT ChangeResolution([in] long width, [in] long height);
105 [ id(4), helpstring("Sends Secure Attention Sequence to the session.") ]
110 uuid(b6396c45-b0cc-456b-9f49-f12964ee6df4),
112 helpstring("Chromoting 1.0 Type Library")
114 library ChromotingLib {
115 importlib("stdole2.tlb");
118 uuid(@DAEMON_CONTROLLER_CLSID@),
119 helpstring("ElevatedController Class")
121 coclass ElevatedController {
122 [default] interface IDaemonControl2;
126 uuid(@RDP_DESKTOP_SESSION_CLSID@),
127 helpstring("RdpDesktopSession Class")
129 coclass RdpDesktopSession {
130 [default] interface IRdpDesktopSession;