diff --git a/reactos/lib/newdev/newdev.c b/reactos/lib/newdev/newdev.c index 0f481e471b7..0880c614d68 100644 --- a/reactos/lib/newdev/newdev.c +++ b/reactos/lib/newdev/newdev.c @@ -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 -#include +#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) diff --git a/reactos/lib/newdev/newdev.def b/reactos/lib/newdev/newdev.def index 60146144e7c..61110e4db06 100644 --- a/reactos/lib/newdev/newdev.def +++ b/reactos/lib/newdev/newdev.def @@ -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 \ No newline at end of file diff --git a/reactos/lib/newdev/newdev.h b/reactos/lib/newdev/newdev.h new file mode 100644 index 00000000000..d41703d2ab2 --- /dev/null +++ b/reactos/lib/newdev/newdev.h @@ -0,0 +1,7 @@ +#include +#include + +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 diff --git a/reactos/lib/newdev/newdev.xml b/reactos/lib/newdev/newdev.xml index 8348cbc81d9..befacbf1d33 100644 --- a/reactos/lib/newdev/newdev.xml +++ b/reactos/lib/newdev/newdev.xml @@ -1,6 +1,7 @@ newdev.c + stubs.c ntdll setupapi diff --git a/reactos/lib/newdev/stubs.c b/reactos/lib/newdev/stubs.c new file mode 100644 index 00000000000..ac68bbacb87 --- /dev/null +++ b/reactos/lib/newdev/stubs.c @@ -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; +} +