1 /* 2 * COPYRIGHT: See COPYING in the top level directory 3 * PROJECT: ReactOS kernel 4 * FILE: base/services/umpnpmgr/install.c 5 * PURPOSE: Device installer 6 * PROGRAMMER: Eric Kohl (eric.kohl@reactos.org) 7 * Herv� Poussineau (hpoussin@reactos.org) 8 * Colin Finck (colin@reactos.org) 9 */ 10 11 #ifndef _UMPNPMGR_PCH_ 12 #define _UMPNPMGR_PCH_ 13 14 #define WIN32_NO_STATUS 15 #define _INC_WINDOWS 16 #define COM_NO_WINDOWS_H 17 #include <stdarg.h> 18 #include <windef.h> 19 #include <winbase.h> 20 #include <winreg.h> 21 #include <winsvc.h> 22 #include <winuser.h> 23 #include <dbt.h> 24 #include <stdio.h> 25 #include <cmfuncs.h> 26 #include <rtlfuncs.h> 27 #include <setypes.h> 28 #include <umpnpmgr/sysguid.h> 29 #include <cfgmgr32.h> 30 #include <regstr.h> 31 #include <userenv.h> 32 #include <shlwapi.h> 33 #include <pnp_s.h> 34 35 36 typedef struct 37 { 38 LIST_ENTRY ListEntry; 39 WCHAR DeviceIds[ANYSIZE_ARRAY]; 40 } DeviceInstallParams; 41 42 /* install.c */ 43 44 extern HANDLE hUserToken; 45 extern HANDLE hInstallEvent; 46 extern HANDLE hNoPendingInstalls; 47 48 /* Device-install event list */ 49 extern HANDLE hDeviceInstallListMutex; 50 extern LIST_ENTRY DeviceInstallListHead; 51 extern HANDLE hDeviceInstallListNotEmpty; 52 53 BOOL 54 SetupIsActive(VOID); 55 56 FORCEINLINE 57 BOOL 58 IsUISuppressionAllowed(VOID); 59 60 DWORD 61 WINAPI 62 DeviceInstallThread( 63 LPVOID lpParameter); 64 65 66 /* rpcserver.c */ 67 68 DWORD 69 WINAPI 70 RpcServerThread( 71 LPVOID lpParameter); 72 73 74 /* umpnpmgr.c */ 75 76 extern HKEY hEnumKey; 77 extern HKEY hClassKey; 78 extern BOOL g_IsUISuppressed; 79 80 BOOL 81 GetSuppressNewUIValue(VOID); 82 83 #endif /* _UMPNPMGR_PCH_ */