Author: ekohl
Date: Fri Mar 19 21:55:09 2010
New Revision: 46277
URL:
http://svn.reactos.org/svn/reactos?rev=46277&view=rev
Log:
[BATT]
Add battery class installer dll.
Added:
trunk/reactos/dll/win32/batt/ (with props)
trunk/reactos/dll/win32/batt/batt.c (with props)
trunk/reactos/dll/win32/batt/batt.rbuild (with props)
trunk/reactos/dll/win32/batt/batt.rc (with props)
trunk/reactos/dll/win32/batt/batt.spec (with props)
trunk/reactos/dll/win32/batt/resource.h (with props)
trunk/reactos/dll/win32/batt/resources/ (with props)
trunk/reactos/dll/win32/batt/resources/battery.ico (with props)
Modified:
trunk/reactos/baseaddress.rbuild
trunk/reactos/boot/bootdata/packages/reactos.dff
trunk/reactos/dll/win32/win32.rbuild
Modified: trunk/reactos/baseaddress.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/baseaddress.rbuild?rev=462…
==============================================================================
--- trunk/reactos/baseaddress.rbuild [iso-8859-1] (original)
+++ trunk/reactos/baseaddress.rbuild [iso-8859-1] Fri Mar 19 21:55:09 2010
@@ -118,6 +118,7 @@
<property name="BASEADDRESS_CARDS" value="0x701a0000" />
<property name="BASEADDRESS_WININET" value="0x70200000" />
<property name="BASEADDRESS_WINHTTP" value="0x70c60000" />
+ <property name="BASEADDRESS_BATT" value="0x70cb0000" />
<property name="BASEADDRESS_AMSTREAM" value="0x71030000" />
<property name="BASEADDRESS_ACLUI" value="0x71550000" />
<property name="BASEADDRESS_DHCPCSVC" value="0x71650000" />
Modified: trunk/reactos/boot/bootdata/packages/reactos.dff
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/bootdata/packages/rea…
==============================================================================
--- trunk/reactos/boot/bootdata/packages/reactos.dff [iso-8859-1] (original)
+++ trunk/reactos/boot/bootdata/packages/reactos.dff [iso-8859-1] Fri Mar 19 21:55:09
2010
@@ -262,6 +262,7 @@
dll\win32\authz\authz.dll 1
dll\win32\avicap32\avicap32.dll 1
dll\win32\avifil32\avifil32.dll 1
+dll\win32\batt\batt.dll 1
dll\win32\bcrypt\bcrypt.dll 1
dll\win32\beepmidi\beepmidi.dll 1
dll\win32\browseui\browseui.dll 1
Propchange: trunk/reactos/dll/win32/batt/
------------------------------------------------------------------------------
--- bugtraq:logregex (added)
+++ bugtraq:logregex Fri Mar 19 21:55:09 2010
@@ -1,0 +1,2 @@
+([Ii]ssue|[Bb]ug)s? #?(\d+)(,? ?#?(\d+))*(,? ?(and |or )?#?(\d+))?
+(\d+)
Propchange: trunk/reactos/dll/win32/batt/
------------------------------------------------------------------------------
bugtraq:message = See issue #%BUGID% for more details.
Propchange: trunk/reactos/dll/win32/batt/
------------------------------------------------------------------------------
bugtraq:url =
http://www.reactos.org/bugzilla/show_bug.cgi?id=%BUGID%
Propchange: trunk/reactos/dll/win32/batt/
------------------------------------------------------------------------------
tsvn:logminsize = 10
Added: trunk/reactos/dll/win32/batt/batt.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/batt/batt.c?rev=…
==============================================================================
--- trunk/reactos/dll/win32/batt/batt.c (added)
+++ trunk/reactos/dll/win32/batt/batt.c [iso-8859-1] Fri Mar 19 21:55:09 2010
@@ -1,0 +1,66 @@
+/*
+ * PROJECT: ReactOS system libraries
+ * LICENSE: GPL - See COPYING in the top level directory
+ * FILE: dll\win32\batt\batt.c
+ * PURPOSE: Battery Class installers
+ * PROGRAMMERS: Copyright 2010 Eric Kohl
+ */
+
+
+#include <windows.h>
+#include <setupapi.h>
+
+#define NDEBUG
+#include <debug.h>
+
+
+BOOL
+WINAPI
+DllMain(HINSTANCE hinstDll,
+ DWORD dwReason,
+ LPVOID reserved)
+{
+ switch (dwReason)
+ {
+ case DLL_PROCESS_ATTACH:
+ DisableThreadLibraryCalls(hinstDll);
+ break;
+
+ case DLL_PROCESS_DETACH:
+ break;
+ }
+
+ return TRUE;
+}
+
+
+DWORD
+WINAPI
+BatteryClassCoInstaller(IN DI_FUNCTION InstallFunction,
+ IN HDEVINFO DeviceInfoSet,
+ IN PSP_DEVINFO_DATA DeviceInfoData OPTIONAL)
+{
+ switch (InstallFunction)
+ {
+ default:
+ DPRINT("Install function %u ignored\n", InstallFunction);
+ return ERROR_DI_DO_DEFAULT;
+ }
+}
+
+
+DWORD
+WINAPI
+BatteryClassInstall(IN DI_FUNCTION InstallFunction,
+ IN HDEVINFO DeviceInfoSet,
+ IN PSP_DEVINFO_DATA DeviceInfoData OPTIONAL)
+{
+ switch (InstallFunction)
+ {
+ default:
+ DPRINT("Install function %u ignored\n", InstallFunction);
+ return ERROR_DI_DO_DEFAULT;
+ }
+}
+
+/* EOF */
Propchange: trunk/reactos/dll/win32/batt/batt.c
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/dll/win32/batt/batt.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/batt/batt.rbuild…
==============================================================================
--- trunk/reactos/dll/win32/batt/batt.rbuild (added)
+++ trunk/reactos/dll/win32/batt/batt.rbuild [iso-8859-1] Fri Mar 19 21:55:09 2010
@@ -1,0 +1,9 @@
+<module name="batt" type="win32dll"
baseaddress="${BASEADDRESS_BATT}" installbase="system32"
installname="batt.dll" unicode="yes">
+ <importlibrary definition="batt.spec" />
+ <include base="batt">.</include>
+ <library>setupapi</library>
+ <library>kernel32</library>
+ <library>ntdll</library>
+ <file>batt.c</file>
+ <file>batt.rc</file>
+</module>
Propchange: trunk/reactos/dll/win32/batt/batt.rbuild
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/dll/win32/batt/batt.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/batt/batt.rc?rev…
==============================================================================
--- trunk/reactos/dll/win32/batt/batt.rc (added)
+++ trunk/reactos/dll/win32/batt/batt.rc [iso-8859-1] Fri Mar 19 21:55:09 2010
@@ -1,0 +1,13 @@
+#include <windows.h>
+#include "resource.h"
+
+LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
+
+#define REACTOS_VERSION_DLL
+#define REACTOS_STR_FILE_DESCRIPTION "Battery Class Installer\0"
+#define REACTOS_STR_INTERNAL_NAME "batt\0"
+#define REACTOS_STR_ORIGINAL_FILENAME "batt.dll\0"
+#include <reactos/version.rc>
+
+
+IDI_BATTERY ICON "resources/battery.ico"
Propchange: trunk/reactos/dll/win32/batt/batt.rc
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/dll/win32/batt/batt.spec
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/batt/batt.spec?r…
==============================================================================
--- trunk/reactos/dll/win32/batt/batt.spec (added)
+++ trunk/reactos/dll/win32/batt/batt.spec [iso-8859-1] Fri Mar 19 21:55:09 2010
@@ -1,0 +1,3 @@
+@ stdcall BatteryClassCoInstaller(long ptr ptr)
+@ stdcall BatteryClassInstall(long ptr ptr)
+
Propchange: trunk/reactos/dll/win32/batt/batt.spec
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/dll/win32/batt/resource.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/batt/resource.h?…
==============================================================================
--- trunk/reactos/dll/win32/batt/resource.h (added)
+++ trunk/reactos/dll/win32/batt/resource.h [iso-8859-1] Fri Mar 19 21:55:09 2010
@@ -1,0 +1,1 @@
+#define IDI_BATTERY 2
Propchange: trunk/reactos/dll/win32/batt/resource.h
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: trunk/reactos/dll/win32/batt/resources/
------------------------------------------------------------------------------
--- bugtraq:logregex (added)
+++ bugtraq:logregex Fri Mar 19 21:55:09 2010
@@ -1,0 +1,2 @@
+([Ii]ssue|[Bb]ug)s? #?(\d+)(,? ?#?(\d+))*(,? ?(and |or )?#?(\d+))?
+(\d+)
Propchange: trunk/reactos/dll/win32/batt/resources/
------------------------------------------------------------------------------
bugtraq:message = See issue #%BUGID% for more details.
Propchange: trunk/reactos/dll/win32/batt/resources/
------------------------------------------------------------------------------
bugtraq:url =
http://www.reactos.org/bugzilla/show_bug.cgi?id=%BUGID%
Propchange: trunk/reactos/dll/win32/batt/resources/
------------------------------------------------------------------------------
tsvn:logminsize = 10
Added: trunk/reactos/dll/win32/batt/resources/battery.ico
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/batt/resources/b…
==============================================================================
Binary file - no diff available.
Propchange: trunk/reactos/dll/win32/batt/resources/battery.ico
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Modified: trunk/reactos/dll/win32/win32.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/win32.rbuild?rev…
==============================================================================
--- trunk/reactos/dll/win32/win32.rbuild [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/win32.rbuild [iso-8859-1] Fri Mar 19 21:55:09 2010
@@ -31,6 +31,9 @@
<directory name="avifil32">
<xi:include href="avifil32/avifil32.rbuild" />
</directory>
+<directory name="batt">
+ <xi:include href="batt/batt.rbuild" />
+</directory>
<directory name="bcrypt">
<xi:include href="bcrypt/bcrypt.rbuild" />
</directory>