Add stubs for InstallNewDevice, InstallSelectedDriver,
UpdateDriverForPlugAndPlayDevicesA/W
Modified: trunk/reactos/lib/newdev/newdev.c
Modified: trunk/reactos/lib/newdev/newdev.def
Added: trunk/reactos/lib/newdev/newdev.h
Modified: trunk/reactos/lib/newdev/newdev.xml
Added: trunk/reactos/lib/newdev/stubs.c
_____
Modified: trunk/reactos/lib/newdev/newdev.c
--- trunk/reactos/lib/newdev/newdev.c 2005-10-02 10:07:25 UTC (rev
18207)
+++ trunk/reactos/lib/newdev/newdev.c 2005-10-02 10:33:25 UTC (rev
18208)
@@ -1,37 +1,15 @@
/*
- * ReactOS New devices installation
- * Copyright (C) 2004 ReactOS Team
- *
- * 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
- */
-/*
+ * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS New devices installation
* FILE: lib/newdev/newdev.c
* PURPOSE: New devices installation
- * PROGRAMMER: HervÚ Poussineau (hpoussin(a)reactos.org)
+ *
+ * PROGRAMMERS: HervÚ Poussineau (hpoussin(a)reactos.org)
*/
-#include <windows.h>
-#include <setupapi.h>
+#include "newdev.h"
-ULONG DbgPrint(PCH Format,...);
-#define UNIMPLEMENTED \
- DbgPrint("NEWDEV: %s at %s:%d is
UNIMPLEMENTED!\n",__FUNCTION__,__FILE__,__LINE__)
-#define DPRINT1 DbgPrint("(%s:%d) ", __FILE__, __LINE__), DbgPrint
-
-BOOL
+BOOL WINAPI
DevInstallW(
IN HWND Hwnd,
IN HINSTANCE Handle,
@@ -44,8 +22,7 @@
DWORD index;
BOOL ret;
- DbgPrint("OK\n");
- DbgPrint("Installing device %S\n", InstanceId);
+ DPRINT1("Installing device %S\n", InstanceId);
hDevInfo = SetupDiCreateDeviceInfoListExW(NULL, NULL, NULL,
NULL);
if (hDevInfo == INVALID_HANDLE_VALUE)
_____
Modified: trunk/reactos/lib/newdev/newdev.def
--- trunk/reactos/lib/newdev/newdev.def 2005-10-02 10:07:25 UTC (rev
18207)
+++ trunk/reactos/lib/newdev/newdev.def 2005-10-02 10:33:25 UTC (rev
18208)
@@ -1,16 +1,15 @@
LIBRARY newdev.dll
EXPORTS
-DevInstallW
+DevInstallW@16
;InstallDevInst
;InstallDevInstEx
-;InstallNewDevice
+InstallNewDevice@12
;InstallSelectedDevice
-;InstallSelectedDriver
+InstallSelectedDriverW@20
;InstallWindowsUpdateDriver
;RollbackDriver
-;UpdateDriverForPlugAndPlayDevicesA
-;UpdateDriverForPlugAndPlayDevicesA@20=UpdateDriverForPlugAndPlayDevice
sA
-;UpdateDriverForPlugAndPlayDevicesW
+UpdateDriverForPlugAndPlayDevicesA@20
+UpdateDriverForPlugAndPlayDevicesW@20
;EOF
\ No newline at end of file
_____
Added: trunk/reactos/lib/newdev/newdev.h
--- trunk/reactos/lib/newdev/newdev.h 2005-10-02 10:07:25 UTC (rev
18207)
+++ trunk/reactos/lib/newdev/newdev.h 2005-10-02 10:33:25 UTC (rev
18208)
@@ -0,0 +1,7 @@
+#include <windows.h>
+#include <setupapi.h>
+
+ULONG DbgPrint(PCH Format,...);
+#define UNIMPLEMENTED \
+ DbgPrint("NEWDEV: %s at %s:%d is
UNIMPLEMENTED!\n",__FUNCTION__,__FILE__,__LINE__)
+#define DPRINT1 DbgPrint("(%s:%d) ", __FILE__, __LINE__), DbgPrint
Property changes on: trunk/reactos/lib/newdev/newdev.h
___________________________________________________________________
Name: svn:keywords
+ author date revision
Name: svn:eol-style
+ native
_____
Modified: trunk/reactos/lib/newdev/newdev.xml
--- trunk/reactos/lib/newdev/newdev.xml 2005-10-02 10:07:25 UTC (rev
18207)
+++ trunk/reactos/lib/newdev/newdev.xml 2005-10-02 10:33:25 UTC (rev
18208)
@@ -1,6 +1,7 @@
<module name="newdev" type="win32dll"
installbase="system32"
installname="newdev.dll">
<importlibrary definition="newdev.def" />
<file>newdev.c</file>
+ <file>stubs.c</file>
<library>ntdll</library>
<library>setupapi</library>
</module>
_____
Added: trunk/reactos/lib/newdev/stubs.c
--- trunk/reactos/lib/newdev/stubs.c 2005-10-02 10:07:25 UTC (rev
18207)
+++ trunk/reactos/lib/newdev/stubs.c 2005-10-02 10:33:25 UTC (rev
18208)
@@ -0,0 +1,61 @@
+/*
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS New devices installation
+ * FILE: lib/newdev/stubs.c
+ * PURPOSE: Stubs
+ *
+ * PROGRAMMERS: HervÚ Poussineau (hpoussin(a)reactos.org)
+ */
+
+#include "newdev.h"
+
+BOOL WINAPI
+InstallNewDevice(
+ IN HWND hwndParent,
+ IN LPGUID ClassGuid OPTIONAL,
+ OUT PDWORD Reboot)
+{
+ UNIMPLEMENTED;
+ SetLastError(ERROR_GEN_FAILURE);
+ return FALSE;
+}
+
+BOOL WINAPI
+InstallSelectedDriverW(
+ IN HWND hwndParent,
+ IN HDEVINFO DeviceInfoSet,
+ IN LPCWSTR Reserved,
+ IN BOOL Backup,
+ OUT PDWORD pReboot)
+{
+ UNIMPLEMENTED;
+ SetLastError(ERROR_GEN_FAILURE);
+ return FALSE;
+}
+
+BOOL WINAPI
+UpdateDriverForPlugAndPlayDevicesA(
+ IN HWND hwndParent,
+ IN LPCSTR HardwareId,
+ IN LPCSTR FullInfPath,
+ IN DWORD InstallFlags,
+ OUT PBOOL bRebootRequired OPTIONAL)
+{
+ UNIMPLEMENTED;
+ SetLastError(ERROR_GEN_FAILURE);
+ return FALSE;
+}
+
+BOOL WINAPI
+UpdateDriverForPlugAndPlayDevicesW(
+ IN HWND hwndParent,
+ IN LPCWSTR HardwareId,
+ IN LPCWSTR FullInfPath,
+ IN DWORD InstallFlags,
+ OUT PBOOL bRebootRequired OPTIONAL)
+{
+ UNIMPLEMENTED;
+ SetLastError(ERROR_GEN_FAILURE);
+ return FALSE;
+}
+
Property changes on: trunk/reactos/lib/newdev/stubs.c
___________________________________________________________________
Name: svn:keywords
+ author date revision
Name: svn:eol-style
+ native