[USETUP] Modify the integrated user-mode PnP manager along the lines of UMPNPMGR...
[reactos.git] / base / setup / usetup / usetup.h
index d0ce275..e65bc33 100644 (file)
 
 #include <ntstrsafe.h>
 
 
 #include <ntstrsafe.h>
 
+
 /* Setup library headers */
 #include <reactos/rosioctl.h>
 #include <../lib/setuplib.h>
 /* Setup library headers */
 #include <reactos/rosioctl.h>
 #include <../lib/setuplib.h>
-// #include "errorcode.h"
 
 /* Internal Headers */
 #include "consup.h"
 
 /* Internal Headers */
 #include "consup.h"
-#include "inffile.h"
 #include "progress.h"
 #include "progress.h"
-#include "infros.h"
-#include "filequeue.h"
-#include "registry.h"
 #include "fslist.h"
 #include "partlist.h"
 #include "fslist.h"
 #include "partlist.h"
-#include "cabinet.h"
-#include "filesup.h"
 #include "genlist.h"
 #include "mui.h"
 
 #include "genlist.h"
 #include "mui.h"
 
+#include "spapisup/inffile.h"
+#include "spapisup/cabinet.h"
+
+
 extern HANDLE ProcessHeap;
 extern HANDLE ProcessHeap;
-extern UNICODE_STRING SourcePath;
 extern BOOLEAN IsUnattendedSetup;
 extern BOOLEAN IsUnattendedSetup;
-extern PWCHAR SelectedLanguageId;
-
-extern VOID InfSetHeap(PVOID Heap);
-extern VOID InfCloseFile(HINF InfHandle);
-extern BOOLEAN InfFindNextLine(PINFCONTEXT ContextIn,
-                               PINFCONTEXT ContextOut);
-extern BOOLEAN InfGetBinaryField(PINFCONTEXT Context,
-                                 ULONG FieldIndex,
-                                 PUCHAR ReturnBuffer,
-                                 ULONG ReturnBufferSize,
-                                 PULONG RequiredSize);
-extern BOOLEAN InfGetMultiSzField(PINFCONTEXT Context,
-                                  ULONG FieldIndex,
-                                  PWSTR ReturnBuffer,
-                                  ULONG ReturnBufferSize,
-                                  PULONG RequiredSize);
-extern BOOLEAN InfGetStringField(PINFCONTEXT Context,
-                                 ULONG FieldIndex,
-                                 PWSTR ReturnBuffer,
-                                 ULONG ReturnBufferSize,
-                                 PULONG RequiredSize);
-
-#define SetupCloseInfFile InfCloseFile
-#define SetupFindNextLine InfFindNextLine
-#define SetupGetBinaryField InfGetBinaryField
-#define SetupGetMultiSzFieldW InfGetMultiSzField
-#define SetupGetStringFieldW InfGetStringField
+extern PCWSTR SelectedLanguageId;
 
 typedef enum _PAGE_NUMBER
 {
 
 typedef enum _PAGE_NUMBER
 {
+    SETUP_INIT_PAGE,
     LANGUAGE_PAGE,
     WELCOME_PAGE,
     LICENSE_PAGE,
     LANGUAGE_PAGE,
     WELCOME_PAGE,
     LICENSE_PAGE,
@@ -152,4 +124,10 @@ typedef enum _PAGE_NUMBER
 #define POPUP_WAIT_ANY_KEY 1
 #define POPUP_WAIT_ENTER   2
 
 #define POPUP_WAIT_ANY_KEY 1
 #define POPUP_WAIT_ENTER   2
 
+VOID
+PopupError(IN PCCH Text,
+           IN PCCH Status,
+           IN PINPUT_RECORD Ir,
+           IN ULONG WaitEvent);
+
 #endif /* _USETUP_PCH_ */
 #endif /* _USETUP_PCH_ */