mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Add stubs for InstallNewDevice, InstallSelectedDriver, UpdateDriverForPlugAndPlayDevicesA/W
svn path=/trunk/; revision=18208
This commit is contained in:
parent
886778d0b2
commit
5ffe4c4880
5 changed files with 80 additions and 35 deletions
|
@ -1,37 +1,15 @@
|
||||||
/*
|
/*
|
||||||
* ReactOS New devices installation
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* 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
|
|
||||||
*/
|
|
||||||
/*
|
|
||||||
* PROJECT: ReactOS New devices installation
|
* PROJECT: ReactOS New devices installation
|
||||||
* FILE: lib/newdev/newdev.c
|
* FILE: lib/newdev/newdev.c
|
||||||
* PURPOSE: New devices installation
|
* PURPOSE: New devices installation
|
||||||
* PROGRAMMER: Hervé Poussineau (hpoussin@reactos.org)
|
*
|
||||||
|
* PROGRAMMERS: Hervé Poussineau (hpoussin@reactos.org)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <windows.h>
|
#include "newdev.h"
|
||||||
#include <setupapi.h>
|
|
||||||
|
|
||||||
ULONG DbgPrint(PCH Format,...);
|
BOOL WINAPI
|
||||||
#define UNIMPLEMENTED \
|
|
||||||
DbgPrint("NEWDEV: %s at %s:%d is UNIMPLEMENTED!\n",__FUNCTION__,__FILE__,__LINE__)
|
|
||||||
#define DPRINT1 DbgPrint("(%s:%d) ", __FILE__, __LINE__), DbgPrint
|
|
||||||
|
|
||||||
BOOL
|
|
||||||
DevInstallW(
|
DevInstallW(
|
||||||
IN HWND Hwnd,
|
IN HWND Hwnd,
|
||||||
IN HINSTANCE Handle,
|
IN HINSTANCE Handle,
|
||||||
|
@ -44,8 +22,7 @@ DevInstallW(
|
||||||
DWORD index;
|
DWORD index;
|
||||||
BOOL ret;
|
BOOL ret;
|
||||||
|
|
||||||
DbgPrint("OK\n");
|
DPRINT1("Installing device %S\n", InstanceId);
|
||||||
DbgPrint("Installing device %S\n", InstanceId);
|
|
||||||
|
|
||||||
hDevInfo = SetupDiCreateDeviceInfoListExW(NULL, NULL, NULL, NULL);
|
hDevInfo = SetupDiCreateDeviceInfoListExW(NULL, NULL, NULL, NULL);
|
||||||
if (hDevInfo == INVALID_HANDLE_VALUE)
|
if (hDevInfo == INVALID_HANDLE_VALUE)
|
||||||
|
|
|
@ -1,16 +1,15 @@
|
||||||
LIBRARY newdev.dll
|
LIBRARY newdev.dll
|
||||||
|
|
||||||
EXPORTS
|
EXPORTS
|
||||||
DevInstallW
|
DevInstallW@16
|
||||||
;InstallDevInst
|
;InstallDevInst
|
||||||
;InstallDevInstEx
|
;InstallDevInstEx
|
||||||
;InstallNewDevice
|
InstallNewDevice@12
|
||||||
;InstallSelectedDevice
|
;InstallSelectedDevice
|
||||||
;InstallSelectedDriver
|
InstallSelectedDriverW@20
|
||||||
;InstallWindowsUpdateDriver
|
;InstallWindowsUpdateDriver
|
||||||
;RollbackDriver
|
;RollbackDriver
|
||||||
;UpdateDriverForPlugAndPlayDevicesA
|
UpdateDriverForPlugAndPlayDevicesA@20
|
||||||
;UpdateDriverForPlugAndPlayDevicesA@20=UpdateDriverForPlugAndPlayDevicesA
|
UpdateDriverForPlugAndPlayDevicesW@20
|
||||||
;UpdateDriverForPlugAndPlayDevicesW
|
|
||||||
|
|
||||||
;EOF
|
;EOF
|
7
reactos/lib/newdev/newdev.h
Normal file
7
reactos/lib/newdev/newdev.h
Normal 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
|
|
@ -1,6 +1,7 @@
|
||||||
<module name="newdev" type="win32dll" installbase="system32" installname="newdev.dll">
|
<module name="newdev" type="win32dll" installbase="system32" installname="newdev.dll">
|
||||||
<importlibrary definition="newdev.def" />
|
<importlibrary definition="newdev.def" />
|
||||||
<file>newdev.c</file>
|
<file>newdev.c</file>
|
||||||
|
<file>stubs.c</file>
|
||||||
<library>ntdll</library>
|
<library>ntdll</library>
|
||||||
<library>setupapi</library>
|
<library>setupapi</library>
|
||||||
</module>
|
</module>
|
||||||
|
|
61
reactos/lib/newdev/stubs.c
Normal file
61
reactos/lib/newdev/stubs.c
Normal 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;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue