Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
1.0 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. winntsif.c
  5. Abstract:
  6. Implements a stub tool that is designed to run with Win9x-side
  7. upgrade code.
  8. Author:
  9. <full name> (<alias>) <date>
  10. Revision History:
  11. <alias> <date> <comments>
  12. --*/
  13. #include "pch.h"
  14. BOOL
  15. Init (
  16. VOID
  17. )
  18. {
  19. HINSTANCE hInstance;
  20. hInstance = GetModuleHandle (NULL);
  21. return InitToolMode (hInstance);
  22. }
  23. VOID
  24. Terminate (
  25. VOID
  26. )
  27. {
  28. HINSTANCE hInstance;
  29. hInstance = GetModuleHandle (NULL);
  30. TerminateToolMode (hInstance);
  31. }
  32. INT
  33. __cdecl
  34. main (
  35. INT argc,
  36. CHAR *argv[]
  37. )
  38. {
  39. if (!Init()) {
  40. printf ("Unable to initialize!\n");
  41. return 255;
  42. }
  43. g_SourceDirectories[0] = TEXT("d:\\i386");
  44. g_SourceDirectoryCount = 1;
  45. GetNeededLangDirs ();
  46. BuildWinntSifFile(REQUEST_RUN);
  47. WriteInfToDisk(TEXT("c:\\output.sif"));
  48. printf("Answer File Data written to c:\\output.sif.\n");
  49. //MemDbSave(TEXT("c:\\ntsetup.dat"));
  50. Terminate();
  51. return 0;
  52. }