Add stubs for InstallNewDevice, InstallSelectedDriver, UpdateDriverForPlugAndPlayDevicesA/W

svn path=/trunk/; revision=18208
This commit is contained in:
Hervé Poussineau 2005-10-02 10:33:25 +00:00
parent 886778d0b2
commit 5ffe4c4880
5 changed files with 80 additions and 35 deletions

View file

@ -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@reactos.org)
*
* PROGRAMMERS: Hervé Poussineau (hpoussin@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 @@ DevInstallW(
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)

View file

@ -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=UpdateDriverForPlugAndPlayDevicesA
;UpdateDriverForPlugAndPlayDevicesW
UpdateDriverForPlugAndPlayDevicesA@20
UpdateDriverForPlugAndPlayDevicesW@20
;EOF

View file

@ -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

View file

@ -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>

View file

@ -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@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;
}