mirror of https://github.com/tongzx/nt5src
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
41 lines
1.0 KiB
/***************************************************************************/
|
|
/** Microsoft Windows **/
|
|
/** Copyright(c) Microsoft Corp., 1995-1996 **/
|
|
/***************************************************************************/
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
erncvrsn.hpp
|
|
|
|
Jun. 96 LenS
|
|
|
|
Versioning.
|
|
|
|
****************************************************************************/
|
|
#include "precomp.h"
|
|
#include "ernccons.h"
|
|
#include "nccglbl.hpp"
|
|
#include "erncvrsn.hpp"
|
|
#include <cuserdta.hpp>
|
|
#include <version.h>
|
|
#include "ernccm.hpp"
|
|
|
|
|
|
// INFO_NOT_RETAIL: Product is not a retail release.
|
|
#define INFO_NOT_RETAIL 0x00000001
|
|
|
|
|
|
BOOL TimeExpired(DWORD dwTime)
|
|
{
|
|
SYSTEMTIME st;
|
|
DWORD dwLocalTime;
|
|
|
|
::GetLocalTime(&st);
|
|
dwLocalTime = ((((unsigned long)st.wYear) << 16) |
|
|
(st.wMonth << 8) |
|
|
st.wDay);
|
|
return (dwLocalTime >= dwTime);
|
|
}
|
|
|
|
|