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.

43 lines
927 B

  1. /***
  2. *bsku.cpp
  3. *
  4. * Copyright (c) 1998-2001, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * Nagware for book SKU.
  8. *
  9. *
  10. *Revision History:
  11. * 07-28-98 JWM Module incorporated into CRTs (from DanS)
  12. * 03-27-01 PML .CRT$XI routines must now return 0 or _RT_* fatal
  13. * error code (vs7#231220)
  14. *
  15. ****/
  16. ///
  17. // Implement the annoying message for the book sku.
  18. //
  19. #include <windows.h>
  20. //
  21. // Include user32.lib
  22. //
  23. #pragma comment(lib, "user32.lib")
  24. static int __cdecl
  25. __runtimeBSKU() {
  26. ::MessageBox(
  27. NULL,
  28. "Note: The terms of the End User License Agreement for Visual C++ Introductory Edition do not permit redistribution of executables you create with this Product.",
  29. "Microsoft (R) Visual C++",
  30. MB_OK|MB_ICONWARNING
  31. );
  32. return 0;
  33. }
  34. #pragma data_seg(".CRT$XIB")
  35. extern "C"
  36. int (__cdecl * __pfnBkCheck)() = __runtimeBSKU;