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(b59b96da-83cb-40ee-9b91-c377400fc3e3),
12 helpstring("IRdpDesktopSessionEventHandler Interface"),
13 pointer_default(unique)
15 interface IRdpDesktopSessionEventHandler : IUnknown {
16 [ id(1), helpstring("Notifies that an RDP connection has been established "
18 HRESULT OnRdpConnected();
20 [ id(2), helpstring("Notifies the delegate that the RDP connection has been "
22 HRESULT OnRdpClosed();
27 uuid(6a7699f0-ee43-43e7-aa30-a6738f9bd470),
29 helpstring("IRdpDesktopSession Interface"),
30 pointer_default(unique)
32 interface IRdpDesktopSession : IUnknown {
33 [ id(1), helpstring("Initiates a loopback RDP connection to spawn a new "
34 "Windows session. |width| and |height| specify the "
35 "initial screen resolution. |terminal_id| specifies a "
36 "unique value to be used to identify this connection.") ]
37 HRESULT Connect([in] long width, [in] long height, [in] BSTR terminal_id,
38 [in] IRdpDesktopSessionEventHandler* event_handler);
40 [ id(2), helpstring("Shuts down the connection created by Connect().") ]
43 [ id(3), helpstring("Changes the screen resolution.") ]
44 HRESULT ChangeResolution([in] long width, [in] long height);
46 [ id(4), helpstring("Sends Secure Attention Sequence to the session.") ]
51 uuid(b6396c45-b0cc-456b-9f49-f12964ee6df4),
53 helpstring("Chromoting 1.0 Type Library")
55 library ChromotingLib {
56 importlib("stdole2.tlb");
59 uuid(@RDP_DESKTOP_SESSION_CLSID@),
60 helpstring("RdpDesktopSession Class")
62 coclass RdpDesktopSession {
63 [default] interface IRdpDesktopSession;