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 | /*
|
---|
20 | * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | import "wtypes.idl";
|
---|
29 | import "oaidl.idl";
|
---|
30 |
|
---|
31 | [
|
---|
32 | version(2.0),
|
---|
33 | uuid(d597deed-5b9f-11d1-8dd2-00aa004abd5e)
|
---|
34 | ]
|
---|
35 | library SensEvents
|
---|
36 | {
|
---|
37 | importlib("stdole2.tlb");
|
---|
38 |
|
---|
39 | typedef struct SENS_QOCINFO
|
---|
40 | {
|
---|
41 | DWORD dwSize;
|
---|
42 | DWORD dwFlags;
|
---|
43 | DWORD dwOutSpeed;
|
---|
44 | DWORD dwInSpeed;
|
---|
45 | } SENS_QOCINFO, *LPSENS_QOCINFO;
|
---|
46 |
|
---|
47 | [
|
---|
48 | object,
|
---|
49 | uuid(d597bab1-5b9f-11d1-8dd2-00aa004abd5e),
|
---|
50 | pointer_default(unique)
|
---|
51 | ]
|
---|
52 | interface ISensNetwork : IDispatch
|
---|
53 | {
|
---|
54 | HRESULT ConnectionMade(
|
---|
55 | [in] BSTR bstrConnection,
|
---|
56 | [in] ULONG ulType,
|
---|
57 | [in] LPSENS_QOCINFO lpQOCInfo );
|
---|
58 | HRESULT ConnectionMadeNoQOCInfo(
|
---|
59 | [in] BSTR bstrConnection,
|
---|
60 | [in] ULONG ulType );
|
---|
61 | HRESULT ConnectionLost(
|
---|
62 | [in] BSTR bstrConnection,
|
---|
63 | [in] ULONG ulType );
|
---|
64 | HRESULT DestinationReachable(
|
---|
65 | [in] BSTR bstrDestination,
|
---|
66 | [in] BSTR bstrConnection,
|
---|
67 | [in] ULONG ulType,
|
---|
68 | [in] LPSENS_QOCINFO lpQOCInfo );
|
---|
69 | HRESULT DestinationReachableNoQOCInfo(
|
---|
70 | [in] BSTR bstrDestination,
|
---|
71 | [in] BSTR bstrConnection,
|
---|
72 | [in] ULONG ulType );
|
---|
73 | }
|
---|
74 |
|
---|
75 | [
|
---|
76 | object,
|
---|
77 | uuid(d597bab2-5b9f-11d1-8dd2-00aa004abd5e),
|
---|
78 | pointer_default(unique)
|
---|
79 | ]
|
---|
80 | interface ISensOnNow : IDispatch
|
---|
81 | {
|
---|
82 | HRESULT OnAcPower( void );
|
---|
83 | HRESULT OnBatteryPower(
|
---|
84 | [in] DWORD dwBatteryLifePercent );
|
---|
85 | HRESULT BatteryLow(
|
---|
86 | [in] DWORD dwBatteryLifePercent );
|
---|
87 | }
|
---|
88 |
|
---|
89 | [
|
---|
90 | object,
|
---|
91 | uuid(d597bab3-5b9f-11d1-8dd2-00aa004abd5e),
|
---|
92 | pointer_default(unique)
|
---|
93 | ]
|
---|
94 | interface ISensLogon : IDispatch
|
---|
95 | {
|
---|
96 | HRESULT Logon(
|
---|
97 | [in] BSTR bstrUserName );
|
---|
98 | HRESULT Logoff(
|
---|
99 | [in] BSTR bstrUserName );
|
---|
100 | HRESULT StartShell(
|
---|
101 | [in] BSTR bstrUserName );
|
---|
102 | HRESULT DisplayLock(
|
---|
103 | [in] BSTR bstrUserName );
|
---|
104 | HRESULT DisplayUnlock(
|
---|
105 | [in] BSTR bstrUserName );
|
---|
106 | HRESULT StartScreenSaver(
|
---|
107 | [in] BSTR bstrUserName );
|
---|
108 | HRESULT StopScreenSaver(
|
---|
109 | [in] BSTR bstrUserName );
|
---|
110 | }
|
---|
111 |
|
---|
112 | [
|
---|
113 | object,
|
---|
114 | uuid(d597bab4-5b9f-11d1-8dd2-00aa004abd5e),
|
---|
115 | pointer_default(unique)
|
---|
116 | ]
|
---|
117 | interface ISensLogon2 : IDispatch
|
---|
118 | {
|
---|
119 | HRESULT Logon(
|
---|
120 | [in] BSTR bstrUserName,
|
---|
121 | [in] DWORD dwSessionId );
|
---|
122 | HRESULT Logoff(
|
---|
123 | [in] BSTR bstrUserName,
|
---|
124 | [in] DWORD dwSessionId );
|
---|
125 | HRESULT SessionDisconnect(
|
---|
126 | [in] BSTR bstrUserName,
|
---|
127 | [in] DWORD dwSessionId );
|
---|
128 | HRESULT SessionReconnect(
|
---|
129 | [in] BSTR bstrUserName,
|
---|
130 | [in] DWORD dwSessionId );
|
---|
131 | HRESULT PostShell(
|
---|
132 | [in] BSTR bstrUserName,
|
---|
133 | [in] DWORD dwSessionId );
|
---|
134 | }
|
---|
135 |
|
---|
136 | } /* library SensEvents */
|
---|