Commit 862377f1 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

sensapi: Define the SensEvents library in sensevts.idl.

Also import wtypes.idl.
parent 043c7fc0
...@@ -16,23 +16,32 @@ ...@@ -16,23 +16,32 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
import "wtypes.idl";
import "oaidl.idl"; import "oaidl.idl";
typedef struct SENS_QOCINFO [
version(2.0),
uuid(d597deed-5b9f-11d1-8dd2-00aa004abd5e)
]
library SensEvents
{ {
importlib("stdole2.tlb");
typedef struct SENS_QOCINFO
{
DWORD dwSize; DWORD dwSize;
DWORD dwFlags; DWORD dwFlags;
DWORD dwOutSpeed; DWORD dwOutSpeed;
DWORD dwInSpeed; DWORD dwInSpeed;
} SENS_QOCINFO, *LPSENS_QOCINFO; } SENS_QOCINFO, *LPSENS_QOCINFO;
[ [
object, object,
uuid(d597bab1-5b9f-11d1-8dd2-00aa004abd5e), uuid(d597bab1-5b9f-11d1-8dd2-00aa004abd5e),
pointer_default(unique) pointer_default(unique)
] ]
interface ISensNetwork : IDispatch interface ISensNetwork : IDispatch
{ {
HRESULT ConnectionMade( HRESULT ConnectionMade(
[in] BSTR bstrConnection, [in] BSTR bstrConnection,
[in] ULONG ulType, [in] ULONG ulType,
...@@ -52,29 +61,29 @@ interface ISensNetwork : IDispatch ...@@ -52,29 +61,29 @@ interface ISensNetwork : IDispatch
[in] BSTR bstrDestination, [in] BSTR bstrDestination,
[in] BSTR bstrConnection, [in] BSTR bstrConnection,
[in] ULONG ulType ); [in] ULONG ulType );
} }
[ [
object, object,
uuid(d597bab2-5b9f-11d1-8dd2-00aa004abd5e), uuid(d597bab2-5b9f-11d1-8dd2-00aa004abd5e),
pointer_default(unique) pointer_default(unique)
] ]
interface ISensOnNow : IDispatch interface ISensOnNow : IDispatch
{ {
HRESULT OnAcPower( void ); HRESULT OnAcPower( void );
HRESULT OnBatteryPower( HRESULT OnBatteryPower(
[in] DWORD dwBatteryLifePercent ); [in] DWORD dwBatteryLifePercent );
HRESULT BatteryLow( HRESULT BatteryLow(
[in] DWORD dwBatteryLifePercent ); [in] DWORD dwBatteryLifePercent );
} }
[ [
object, object,
uuid(d597bab3-5b9f-11d1-8dd2-00aa004abd5e), uuid(d597bab3-5b9f-11d1-8dd2-00aa004abd5e),
pointer_default(unique) pointer_default(unique)
] ]
interface ISensLogon : IDispatch interface ISensLogon : IDispatch
{ {
HRESULT Logon( HRESULT Logon(
[in] BSTR bstrUserName ); [in] BSTR bstrUserName );
HRESULT Logoff( HRESULT Logoff(
...@@ -89,15 +98,15 @@ interface ISensLogon : IDispatch ...@@ -89,15 +98,15 @@ interface ISensLogon : IDispatch
[in] BSTR bstrUserName ); [in] BSTR bstrUserName );
HRESULT StopScreenSaver( HRESULT StopScreenSaver(
[in] BSTR bstrUserName ); [in] BSTR bstrUserName );
} }
[ [
object, object,
uuid(d597bab4-5b9f-11d1-8dd2-00aa004abd5e), uuid(d597bab4-5b9f-11d1-8dd2-00aa004abd5e),
pointer_default(unique) pointer_default(unique)
] ]
interface ISensLogon2 : IDispatch interface ISensLogon2 : IDispatch
{ {
HRESULT Logon( HRESULT Logon(
[in] BSTR bstrUserName, [in] BSTR bstrUserName,
[in] DWORD dwSessionId ); [in] DWORD dwSessionId );
...@@ -113,4 +122,6 @@ interface ISensLogon2 : IDispatch ...@@ -113,4 +122,6 @@ interface ISensLogon2 : IDispatch
HRESULT PostShell( HRESULT PostShell(
[in] BSTR bstrUserName, [in] BSTR bstrUserName,
[in] DWORD dwSessionId ); [in] DWORD dwSessionId );
} }
} /* library SensEvents */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment