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.

58 lines
990 B

  1. /*++
  2. Copyright (c) 1994 - 1995 Microsoft Corporation
  3. Module Name:
  4. Drv.c
  5. Abstract:
  6. Test driver installation
  7. Author:
  8. Revision History:
  9. --*/
  10. #define NOMINMAX
  11. #include <nt.h>
  12. #include <ntrtl.h>
  13. #include <nturtl.h>
  14. #include <windows.h>
  15. #include <stdio.h>
  16. #include <stdlib.h>
  17. #include <prsht.h>
  18. #include <syssetup.h>
  19. int
  20. #if !defined(_MIPS_) && !defined(_ALPHA_) && !defined(_PPC_)
  21. _cdecl
  22. #endif
  23. main (argc, argv)
  24. int argc;
  25. char *argv[];
  26. {
  27. INTERNAL_SETUP_DATA IntSetupData;
  28. WCHAR szPath[] = L"C:\\$WIN_NT$.~LS";
  29. HANDLE hModule;
  30. DWORD (*upg)(HWND, PCINTERNAL_SETUP_DATA);
  31. ZeroMemory(&IntSetupData, sizeof(IntSetupData));
  32. IntSetupData.SourcePath = szPath;
  33. IntSetupData.OperationFlags = 0;
  34. hModule = LoadLibrary(L"ntprint");
  35. if ( !hModule )
  36. return(0);
  37. (FARPROC)upg = GetProcAddress(hModule, (LPCSTR)1);
  38. if ( !upg )
  39. return 0;
  40. (*upg)(NULL, &IntSetupData);
  41. }