add idl file for the System Event Notifcation Services API (SENSAPI)

Mike McCormack mike at codeweavers.com
Wed Jan 26 21:03:04 CST 2005


Aric and Steven want to make a stub implementation of sensapi.dll for 
Quicken 2005.  This is the header file they need.

Mike


ChangeLog:
* add idl file for the System Event Notifcation Services API (SENSAPI)
-------------- next part --------------
Index: include/Makefile.in
===================================================================
RCS file: /home/wine/wine/include/Makefile.in,v
retrieving revision 1.157
diff -u -p -r1.157 Makefile.in
--- include/Makefile.in	24 Jan 2005 19:42:02 -0000	1.157
+++ include/Makefile.in	27 Jan 2005 02:58:39 -0000
@@ -26,6 +26,7 @@ IDL_SRCS = \
 	propidl.idl \
 	pstore.idl \
 	richole.idl \
+	sensevts.idl \
 	servprov.idl \
 	shldisp.idl \
 	shobjidl.idl \
--- /dev/null	2004-12-26 03:00:47.000000000 +0900
+++ include/sensevts.idl	2005-01-27 11:51:54.000000000 +0900
@@ -0,0 +1,112 @@
+/*
+ * Copyright (C) 2005 Mike McCormack
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+
+import "oaidl.idl";
+
+typedef struct SENS_QOCINFO
+{
+    DWORD dwSize;
+    DWORD dwFlags;
+    DWORD dwOutSpeed;
+    DWORD dwInSpeed;
+} SENS_QOCINFO, *LPSENS_QOCINFO;
+
+[
+  object,
+  pointer_default(unique)
+]
+interface ISensNetwork : IDispatch
+{
+    HRESULT ConnectionMade(
+        [in] BSTR bstrConnection,
+        [in] ULONG ulType,
+        [in] LPSENS_QOCINFO lpQOCInfo );
+    HRESULT ConnectionMadeNoQOCInfo(
+        [in] BSTR bstrConnection,
+        [in] ULONG ulType );
+    HRESULT ConnectionLost(
+        [in] BSTR bstrConnection,
+        [in] ULONG ulType );
+    HRESULT DestinationReachable(
+        [in] BSTR bstrDestination,
+        [in] BSTR bstrConnection,
+        [in] ULONG ulType,
+        [in] LPSENS_QOCINFO lpQOCInfo );
+    HRESULT DestinationReachableNoQOCInfo(
+        [in] BSTR bstrDestination,
+        [in] BSTR bstrConnection,
+        [in] ULONG ulType );
+}
+
+[
+  object,
+  pointer_default(unique)
+]
+interface ISensOnNow : IDispatch
+{
+    HRESULT OnAcPower( void );
+    HRESULT OnBatteryPower(
+        [in] DWORD dwBatteryLifePercent );
+    HRESULT BatteryLow(
+        [in] DWORD dwBatteryLifePercent );
+}
+
+[
+  object,
+  pointer_default(unique)
+]
+interface ISensLogon : IDispatch
+{
+    HRESULT Logon(
+        [in] BSTR bstrUserName );
+    HRESULT Logoff(
+        [in] BSTR bstrUserName );
+    HRESULT StartShell(
+        [in] BSTR bstrUserName );
+    HRESULT DisplayLock(
+        [in] BSTR bstrUserName );
+    HRESULT DisplayUnlock(
+        [in] BSTR bstrUserName );
+    HRESULT StartScreenSaver(
+        [in] BSTR bstrUserName );
+    HRESULT StopScreenSaver(
+        [in] BSTR bstrUserName );
+}
+
+[
+  object,
+  pointer_default(unique)
+]
+interface ISensLogon2 : IDispatch
+{
+    HRESULT Logon(
+        [in] BSTR bstrUserName,
+        [in] DWORD dwSessionId );
+    HRESULT Logoff(
+        [in] BSTR bstrUserName,
+        [in] DWORD dwSessionId );
+    HRESULT SessionDisconnect(
+        [in] BSTR bstrUserName,
+        [in] DWORD dwSessionId );
+    HRESULT SessionReconnect(
+        [in] BSTR bstrUserName,
+        [in] DWORD dwSessionId );
+    HRESULT PostShell(
+        [in] BSTR bstrUserName,
+        [in] DWORD dwSessionId );
+}


More information about the wine-patches mailing list