Leaked source code of windows server 2003
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.

75 lines
929 B

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. w9xtool.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. #include "shellapi.h"
  15. BOOL
  16. Init (
  17. VOID
  18. )
  19. {
  20. HINSTANCE hInstance;
  21. hInstance = GetModuleHandle (NULL);
  22. return InitToolMode (hInstance);
  23. }
  24. VOID
  25. Terminate (
  26. VOID
  27. )
  28. {
  29. HINSTANCE hInstance;
  30. hInstance = GetModuleHandle (NULL);
  31. TerminateToolMode (hInstance);
  32. }
  33. INT
  34. __cdecl
  35. main (
  36. INT argc,
  37. CHAR *argv[]
  38. )
  39. {
  40. SuppressAllLogPopups (TRUE);
  41. if (!Init()) {
  42. printf ("Unable to initialize!\n");
  43. return 255;
  44. }
  45. //
  46. // TODO: Put your code here
  47. //
  48. Terminate();
  49. return 0;
  50. }