source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/tsvirtualchannels.idl@ 1178

Last change on this file since 1178 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 3.6 KB
RevLine 
[1166]1/**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6
7cpp_quote("#include <winapifamily.h>")
8
9cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
10
11import "unknwn.idl";
12import "oaidl.idl";
13
14interface IWTSPlugin;
15interface IWTSListener;
16interface IWTSListenerCallback;
17interface IWTSVirtualChannelCallback;
18interface IWTSVirtualChannelManager;
19interface IWTSVirtualChannel;
20
21
22cpp_quote("#define WTS_PROPERTY_DEFAULT_CONFIG L\"DefaultConfig\"")
23
24cpp_quote("#define E_MAPPEDRENDERER_SHUTDOWN HRESULT_FROM_WIN32(ERROR_INVALID_STATE)")
25cpp_quote("#define E_DUPLICATE_WINDOW_HINT HRESULT_FROM_WIN32(ERROR_ALREADY_EXISTS)")
26
27[object, uuid(a1230201-1439-4e62-a414-190d0ac3d40e), oleautomation]
28interface IWTSPlugin : IUnknown
29{
30 HRESULT Initialize([in] IWTSVirtualChannelManager *pChannelMgr);
31 HRESULT Connected(void);
32 HRESULT Disconnected([in] DWORD dwDisconnectCode);
33 HRESULT Terminated(void);
34}
35
36[object, uuid(a1230206-9a39-4d58-8674-cdb4dff4e73b), oleautomation]
37interface IWTSListener : IUnknown
38{
39 HRESULT GetConfiguration([out] IPropertyBag **ppPropertyBag);
40}
41
42[object, uuid(a1230203-d6a7-11d8-b9fd-000bdbd1f198), oleautomation]
43interface IWTSListenerCallback : IUnknown
44{
45 HRESULT OnNewChannelConnection([in] IWTSVirtualChannel *pChannel, [in,ptr] BSTR data, [out] WINBOOL *pbAccept, [out] IWTSVirtualChannelCallback **ppCallback);
46}
47
48[object, uuid(a1230204-d6a7-11d8-b9fd-000bdbd1f198), oleautomation]
49interface IWTSVirtualChannelCallback : IUnknown
50{
51 HRESULT OnDataReceived([in] ULONG cbSize, [in, size_is(cbSize)] BYTE *pBuffer);
52 HRESULT OnClose(void);
53}
54
55cpp_quote("#define TS_VC_LISTENER_STATIC_CHANNEL 0x00000001")
56[object, uuid(a1230205-d6a7-11d8-b9fd-000bdbd1f198), oleautomation]
57interface IWTSVirtualChannelManager : IUnknown
58{
59 HRESULT CreateListener([in, string] const char *pszChannelName, [in] ULONG uFlags, [in] IWTSListenerCallback *pListenerCallback, [out] IWTSListener **ppListener);
60}
61
62[object, uuid(a1230207-d6a7-11d8-b9fd-000bdbd1f198), oleautomation]
63interface IWTSVirtualChannel : IUnknown
64{
65 HRESULT Write([in] ULONG cbSize, [in, size_is(cbSize)] BYTE *pBuffer, [in] IUnknown *pReserved);
66 HRESULT Close(void);
67}
68
69cpp_quote( "EXTERN_GUID( RDCLIENT_BITMAP_RENDER_SERVICE, 0xe4cc08cb, 0x942e, 0x4b19, 0x85, 0x4, 0xbd, 0x5a, 0x89, 0xa7, 0x47, 0xf5);" )
70
71[object, uuid(d3e07363-087c-476c-86a7-dbb15f46ddb4), oleautomation]
72interface IWTSPluginServiceProvider : IUnknown
73{
74 HRESULT GetService([in] GUID ServiceId, [out] IUnknown **ppunkObject);
75}
76
77typedef struct __BITMAP_RENDERER_STATISTICS {
78 DWORD dwFramesDelivered;
79 DWORD dwFramesDropped;
80} BITMAP_RENDERER_STATISTICS, *PBITMAP_RENDERER_STATISTICS;
81
82[object, uuid(5b7acc97-f3c9-46f7-8c5b-fa685d3441b1), oleautomation]
83interface IWTSBitmapRenderer : IUnknown
84{
85 HRESULT Render([in] GUID imageFormat, [in] DWORD dwWidth, [in] DWORD dwHeight, [in] LONG cbStride, [in] DWORD cbImageBuffer, [in, size_is(cbImageBuffer)] BYTE *pImageBuffer);
86 HRESULT GetRendererStatistics([out] BITMAP_RENDERER_STATISTICS *pStatistics);
87 HRESULT RemoveMapping(void);
88}
89
90[object, uuid(d782928e-fe4e-4e77-ae90-9cd0b3e3b353), oleautomation]
91interface IWTSBitmapRendererCallback : IUnknown
92{
93 HRESULT OnTargetSizeChanged([in] RECT rcNewSize);
94}
95
96[object, uuid(ea326091-05fe-40c1-b49c-3d2ef4626a0e), oleautomation]
97interface IWTSBitmapRenderService : IUnknown
98{
99 HRESULT GetMappedRenderer([in] UINT64 mappingId, [in] IWTSBitmapRendererCallback *pMappedRendererCallback, [out] IWTSBitmapRenderer **ppMappedRenderer);
100}
101
102cpp_quote("#endif /* WINAPI_PARTITION_DESKTOP */")
Note: See TracBrowser for help on using the repository browser.