server: Report a default DACL for registry keys.
[wine] / include / sensevts.idl
1 /*
2  * Copyright (C) 2005 Mike McCormack
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17  */
18
19 import "wtypes.idl";
20 import "oaidl.idl";
21
22 [
23   version(2.0),
24   uuid(d597deed-5b9f-11d1-8dd2-00aa004abd5e)
25 ]
26 library SensEvents
27 {
28     importlib("stdole2.tlb");
29
30     typedef struct SENS_QOCINFO
31     {
32         DWORD dwSize;
33         DWORD dwFlags;
34         DWORD dwOutSpeed;
35         DWORD dwInSpeed;
36     } SENS_QOCINFO, *LPSENS_QOCINFO;
37
38     [
39       object,
40       uuid(d597bab1-5b9f-11d1-8dd2-00aa004abd5e),
41       pointer_default(unique)
42     ]
43     interface ISensNetwork : IDispatch
44     {
45         HRESULT ConnectionMade(
46             [in] BSTR bstrConnection,
47             [in] ULONG ulType,
48             [in] LPSENS_QOCINFO lpQOCInfo );
49         HRESULT ConnectionMadeNoQOCInfo(
50             [in] BSTR bstrConnection,
51             [in] ULONG ulType );
52         HRESULT ConnectionLost(
53             [in] BSTR bstrConnection,
54             [in] ULONG ulType );
55         HRESULT DestinationReachable(
56             [in] BSTR bstrDestination,
57             [in] BSTR bstrConnection,
58             [in] ULONG ulType,
59             [in] LPSENS_QOCINFO lpQOCInfo );
60         HRESULT DestinationReachableNoQOCInfo(
61             [in] BSTR bstrDestination,
62             [in] BSTR bstrConnection,
63             [in] ULONG ulType );
64     }
65
66     [
67       object,
68       uuid(d597bab2-5b9f-11d1-8dd2-00aa004abd5e),
69       pointer_default(unique)
70     ]
71     interface ISensOnNow : IDispatch
72     {
73         HRESULT OnAcPower( void );
74         HRESULT OnBatteryPower(
75             [in] DWORD dwBatteryLifePercent );
76         HRESULT BatteryLow(
77             [in] DWORD dwBatteryLifePercent );
78     }
79
80     [
81       object,
82       uuid(d597bab3-5b9f-11d1-8dd2-00aa004abd5e),
83       pointer_default(unique)
84     ]
85     interface ISensLogon : IDispatch
86     {
87         HRESULT Logon(
88             [in] BSTR bstrUserName );
89         HRESULT Logoff(
90             [in] BSTR bstrUserName );
91         HRESULT StartShell(
92             [in] BSTR bstrUserName );
93         HRESULT DisplayLock(
94             [in] BSTR bstrUserName );
95         HRESULT DisplayUnlock(
96             [in] BSTR bstrUserName );
97         HRESULT StartScreenSaver(
98             [in] BSTR bstrUserName );
99         HRESULT StopScreenSaver(
100             [in] BSTR bstrUserName );
101     }
102
103     [
104       object,
105       uuid(d597bab4-5b9f-11d1-8dd2-00aa004abd5e),
106       pointer_default(unique)
107     ]
108     interface ISensLogon2 : IDispatch
109     {
110         HRESULT Logon(
111             [in] BSTR bstrUserName,
112             [in] DWORD dwSessionId );
113         HRESULT Logoff(
114             [in] BSTR bstrUserName,
115             [in] DWORD dwSessionId );
116         HRESULT SessionDisconnect(
117             [in] BSTR bstrUserName,
118             [in] DWORD dwSessionId );
119         HRESULT SessionReconnect(
120             [in] BSTR bstrUserName,
121             [in] DWORD dwSessionId );
122         HRESULT PostShell(
123             [in] BSTR bstrUserName,
124             [in] DWORD dwSessionId );
125     }
126
127 } /* library SensEvents */