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.

41 lines
1.0 KiB

  1. /***************************************************************************/
  2. /** Microsoft Windows **/
  3. /** Copyright(c) Microsoft Corp., 1995-1996 **/
  4. /***************************************************************************/
  5. /****************************************************************************
  6. erncvrsn.hpp
  7. Jun. 96 LenS
  8. Versioning.
  9. ****************************************************************************/
  10. #include "precomp.h"
  11. #include "ernccons.h"
  12. #include "nccglbl.hpp"
  13. #include "erncvrsn.hpp"
  14. #include <cuserdta.hpp>
  15. #include <version.h>
  16. #include "ernccm.hpp"
  17. // INFO_NOT_RETAIL: Product is not a retail release.
  18. #define INFO_NOT_RETAIL 0x00000001
  19. BOOL TimeExpired(DWORD dwTime)
  20. {
  21. SYSTEMTIME st;
  22. DWORD dwLocalTime;
  23. ::GetLocalTime(&st);
  24. dwLocalTime = ((((unsigned long)st.wYear) << 16) |
  25. (st.wMonth << 8) |
  26. st.wDay);
  27. return (dwLocalTime >= dwTime);
  28. }